EXSWHTEC-40 - Implement additional Stream Management negative tests (#2922)
- Implement negative test for hipStream<Write/Wait>Value when stream is uninitialized - Implement negative test for hipStreamSynchronize when stream is uninitialized - Invalid flag negative test for hipStreamWriteValue API removed as flag parameter is not used
This commit is contained in:
1 bovenliggende
5dc822afcd
commit
17feaa555d
2 files changed
+47
-2
No files matched your search
@@ -33,6 +33,19 @@ TEST_CASE("Unit_hipStreamSynchronize_EmptyStream") {
|
||||
HIP_CHECK(hipStreamDestroy(stream));
|
||||
}
|
||||
|
||||
#if !HT_NVIDIA
|
||||
/**
|
||||
* @brief Check that synchronization of uninitialized stream sets its status to
|
||||
* hipErrorContextIsDestroyed
|
||||
*
|
||||
* Test removed for Nvidia devices because it returns unexpected error
|
||||
*/
|
||||
TEST_CASE("Unit_hipStreamSynchronize_UninitializedStream") {
|
||||
hipStream_t stream{reinterpret_cast<hipStream_t>(0xFFFF)};
|
||||
HIP_CHECK_ERROR(hipStreamSynchronize(stream), hipErrorContextIsDestroyed);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HT_AMD /* Disabled because frequency based wait is timing out on nvidia platforms */
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user