SWDEV-514841 - Remove invalid stream tests which leads to segfault

Change-Id: I230c4ccc0d2f591cbf2cd0e019f910094f4f3f26
This commit is contained in:
Pengda Xie
2025-02-12 17:32:50 -08:00
committed by Ioannis Assiouras
orang tua c4135a6090
melakukan b46d6abdcb
21 mengubah file dengan 61 tambahan dan 136 penghapusan
+3 -1
Melihat File
@@ -56,12 +56,13 @@ TEST_CASE("Unit_hipStreamEndCapture_Negative_Parameters") {
}
#if HT_NVIDIA
SECTION("Pass graph as nullptr") {
HIP_CHECK_ERROR(hipStreamEndCapture(stream, nullptr), hipErrorInvalidValue);
HIP_CHECK_ERROR(hipStreamEndCapture(stream, nullptr), hipErrorIllegalState);
}
#endif
SECTION("End capture on stream where capture has not yet started") {
HIP_CHECK_ERROR(hipStreamEndCapture(stream, &graph), hipErrorIllegalState);
}
#if HT_AMD
SECTION("Destroy stream and try to end capture") {
hipStream_t destroyed_stream;
HIP_CHECK(hipStreamCreate(&destroyed_stream));
@@ -69,6 +70,7 @@ TEST_CASE("Unit_hipStreamEndCapture_Negative_Parameters") {
HIP_CHECK(hipStreamDestroy(destroyed_stream));
HIP_CHECK_ERROR(hipStreamEndCapture(destroyed_stream, &graph), hipErrorContextIsDestroyed);
}
#endif
}
/**