SWDEV-555295 - Fix and enable Unit_hipFreeAsync_Negative_Parameters (#991)

This commit is contained in:
marandje
2025-10-22 15:57:54 +02:00
committed by GitHub
parent 920b33c0b9
commit aa4dee57b5
3 changed files with 1 additions and 12 deletions
@@ -564,7 +564,6 @@
"Unit_Device___hiloint2double_Positive",
"Unit_Device___hiloint2double_Negative_RTC",
"SWDEV-447384, SWDEV-447932: These tests fail in gfx1100, gfx1101 & gfx1102",
"Unit_hipFreeAsync_Negative_Parameters",
"SWDEV-445928: These tests fail in PSDB stress test on 09/02/2024",
"Unit_hipDestroySurfaceObject_Negative_Parameters",
"Unit_Device___float2half_rd_Accuracy_Limited_Positive",
@@ -13,8 +13,6 @@
"Unit_ChannelDescriptor_Positive_Basic_3D - long3",
"Unit_ChannelDescriptor_Positive_Basic_4D - ulong4",
"Unit_ChannelDescriptor_Positive_Basic_4D - long4",
"=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/38 ===",
"Unit_hipFreeAsync_Negative_Parameters",
"=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/92 ===",
"Unit_hipGetTexObjectResourceDesc_positive",
"Unit_hipGetTexObjectResourceDesc_Negative_Parameters",
@@ -57,15 +57,7 @@ TEST_CASE("Unit_hipFreeAsync_Negative_Parameters") {
StreamGuard stream(Streams::created);
SECTION("dev_ptr is nullptr") {
HIP_CHECK_ERROR(hipFreeAsync(nullptr, stream.stream()), hipErrorInvalidValue);
}
SECTION("Invalid stream handle") {
HIP_CHECK(hipMallocAsync(reinterpret_cast<void**>(&p), alloc_size, stream.stream()));
HIP_CHECK(hipStreamSynchronize(stream.stream()));
HIP_CHECK_ERROR(hipFreeAsync(p, reinterpret_cast<hipStream_t>(-1)), hipErrorInvalidHandle);
HIP_CHECK(hipFreeAsync(reinterpret_cast<void*>(p), stream.stream()));
HIP_CHECK(hipStreamSynchronize(stream.stream()));
HIP_CHECK(hipFreeAsync(nullptr, stream.stream()));
}
SECTION("Double free") {