SWDEV-1 - Add missing checks in memset.cc
This commit is contained in:
@@ -6,7 +6,8 @@ TEST_CASE("Unit_hipMemset_4bytes") {
|
|||||||
REQUIRE(res == hipSuccess);
|
REQUIRE(res == hipSuccess);
|
||||||
res = hipMemset(d_a, 0, sizeof(int));
|
res = hipMemset(d_a, 0, sizeof(int));
|
||||||
REQUIRE(res == hipSuccess);
|
REQUIRE(res == hipSuccess);
|
||||||
hipFree(d_a);
|
res = hipFree(d_a);
|
||||||
|
REQUIRE(res == hipSuccess);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("Unit_hipMemset_4bytes_hostMem") {
|
TEST_CASE("Unit_hipMemset_4bytes_hostMem") {
|
||||||
@@ -15,5 +16,6 @@ TEST_CASE("Unit_hipMemset_4bytes_hostMem") {
|
|||||||
REQUIRE(res == hipSuccess);
|
REQUIRE(res == hipSuccess);
|
||||||
res = hipMemset(d_a, 0, sizeof(int));
|
res = hipMemset(d_a, 0, sizeof(int));
|
||||||
REQUIRE(res == hipSuccess);
|
REQUIRE(res == hipSuccess);
|
||||||
hipHostFree(d_a);
|
res = hipHostFree(d_a);
|
||||||
|
REQUIRE(res == hipSuccess);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user