diff --git a/projects/hip-tests/catch/unit/launchBounds/launch_bounds.cc b/projects/hip-tests/catch/unit/launchBounds/launch_bounds.cc index 1a9fc70710..0a6c858088 100644 --- a/projects/hip-tests/catch/unit/launchBounds/launch_bounds.cc +++ b/projects/hip-tests/catch/unit/launchBounds/launch_bounds.cc @@ -53,7 +53,10 @@ template void LaunchBoundsWrapper(const int threads_per_blo if constexpr (out_of_bounds) { if (threads_per_block < 0) { - HIP_CHECK_ERROR(hipGetLastError(), hipErrorInvalidConfiguration); + hipError_t err = hipGetLastError(); + if (err != hipErrorInvalidConfiguration && err != hipErrorInvalidValue) { + REQUIRE(false); + } } else { #if HT_AMD HIP_CHECK_ERROR(hipGetLastError(), hipErrorLaunchFailure);