[SWDEV-467733] - Set Cache Config Negative Param test fix

Change-Id: I058ca23a05e63aaaa54ea22e2b509593764cd7bc


[ROCm/hip-tests commit: 4e99f68b03]
This commit is contained in:
Rahul Manocha authored and Rakesh Roy committed 2024-09-24 12:26:35 -04:00
1 parent 0ad2a9912a
commit 51620a1bb6
3 files changed
+2 -4

No files matched your search

@@ -24,6 +24,7 @@
"Unit_hipInit_Negative",
"Unit_hipDeviceReset_Positive_Basic",
"Unit_hipDeviceReset_Positive_Threaded",
"Unit_hipDeviceSetCacheConfig_Negative_Parameters",
"Unit_hipFuncSetCacheConfig_Positive_Basic",
"Unit_hipFuncSetCacheConfig_Negative_Parameters",
"Unit_hipFuncSetSharedMemConfig_Positive_Basic",
@@ -105,6 +105,7 @@
"Note: intermittent Seg fault failure ",
"Unit_hipGraphAddEventRecordNode_Functional_WithoutFlags",
"Unit_hipGraphAddChildGraphNode_MultGraphsAsSingleGraph",
"Unit_hipDeviceSetCacheConfig_Negative_Parameters",
"Unit_hipFuncSetCacheConfig_Positive_Basic",
"Unit_hipFuncSetCacheConfig_Negative_Parameters",
"Unit_hipFuncSetSharedMemConfig_Positive_Basic",
@@ -75,11 +75,7 @@ TEST_CASE("Unit_hipDeviceSetCacheConfig_Positive_Basic") {
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipDeviceSetCacheConfig_Negative_Parameters") {
#if HT_AMD
HIP_CHECK_ERROR(hipDeviceSetCacheConfig(static_cast<hipFuncCache_t>(-1)), hipSuccess);
#elif HT_NVIDIA
HIP_CHECK_ERROR(hipDeviceSetCacheConfig(static_cast<hipFuncCache_t>(-1)), hipErrorInvalidValue);
#endif
}
/**