diff --git a/projects/hip/tests/src/deviceLib/hip_anyall.cpp b/projects/hip/tests/src/deviceLib/hip_anyall.cpp index b4c747b7d7..21ad9f871c 100644 --- a/projects/hip/tests/src/deviceLib/hip_anyall.cpp +++ b/projects/hip/tests/src/deviceLib/hip_anyall.cpp @@ -96,13 +96,17 @@ int main(int argc, char* argv[]) { #if defined(__HIP_PLATFORM_HCC__) && !defined(NVCC_COMPAT) if (anycount == 1 && allcount == 1) printf("PASSED\n"); - else + else { printf("FAILED\n"); + return EXIT_FAILURE; + } #else if (anycount == 0 && allcount == 1) printf("PASSED\n"); - else + else { printf("FAILED\n"); + return EXIT_FAILURE; + } #endif return EXIT_SUCCESS; diff --git a/projects/hip/tests/src/deviceLib/hip_ballot.cpp b/projects/hip/tests/src/deviceLib/hip_ballot.cpp index 46654d15a3..603614b22f 100644 --- a/projects/hip/tests/src/deviceLib/hip_ballot.cpp +++ b/projects/hip/tests/src/deviceLib/hip_ballot.cpp @@ -89,7 +89,9 @@ int main(int argc, char* argv[]) { if (divergent_count == 1) printf("PASSED\n"); - else + else { printf("FAILED\n"); + return EXIT_FAILURE; + } return EXIT_SUCCESS; }