SWDEV-1 - Add missing checks in memset.cc

[ROCm/hip commit: 37dac38f54]
Tá an tiomantas seo le fáil i:
Maneesh Gupta údaraithe agus GitHub tiomanta 2022-10-10 16:15:08 +05:30
1 tuismitheoir f14ad3abfe
tiomantas 1fcc9841d9
1 comhad athraithe
+4 -2
+4 -2
Féach ar an gComhad
@@ -6,7 +6,8 @@ TEST_CASE("Unit_hipMemset_4bytes") {
REQUIRE(res == hipSuccess);
res = hipMemset(d_a, 0, sizeof(int));
REQUIRE(res == hipSuccess);
hipFree(d_a);
res = hipFree(d_a);
REQUIRE(res == hipSuccess);
}
TEST_CASE("Unit_hipMemset_4bytes_hostMem") {
@@ -15,5 +16,6 @@ TEST_CASE("Unit_hipMemset_4bytes_hostMem") {
REQUIRE(res == hipSuccess);
res = hipMemset(d_a, 0, sizeof(int));
REQUIRE(res == hipSuccess);
hipHostFree(d_a);
res = hipHostFree(d_a);
REQUIRE(res == hipSuccess);
}