SWDEV-334272 - fix test hang issue (#2683)

destroy stream before exit

[ROCm/hip-tests commit: 1f7b336400]
이 커밋은 다음에 포함됨:
haoyuan2 작성하고 GitHub가 2022-05-20 08:13:17 -07:00를 커밋함
1 부모 afb48886bc
커밋 081d8b4739
1 파일이 변경됨
+3 -1
+3 -1
파일 보기
@@ -1,5 +1,5 @@
/*
Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@@ -393,6 +393,7 @@ TEST_CASE("Unit_hipMemcpyParam2DAsync_ExtentValidation") {
// DeAllocating the Memory
HIP_CHECK(hipFree(A_d));
HIP_CHECK(hipStreamDestroy(stream));
HipTest::freeArrays<char>(nullptr, nullptr, nullptr,
A_h, B_h, C_h, false);
}
@@ -483,6 +484,7 @@ TEST_CASE("Unit_hipMemcpyParam2DAsync_Negative") {
// DeAllocating the memory
HIP_CHECK(hipFree(A_d));
HIP_CHECK(hipStreamSynchronize(stream));
HIP_CHECK(hipStreamDestroy(stream));
HipTest::freeArrays<float>(nullptr, nullptr, nullptr,
A_h, B_h, C_h, false);
}