diff --git a/openmp/libomptarget/test/offloading/bug49021.cpp b/openmp/libomptarget/test/offloading/bug49021.cpp --- a/openmp/libomptarget/test/offloading/bug49021.cpp +++ b/openmp/libomptarget/test/offloading/bug49021.cpp @@ -1,4 +1,4 @@ -// RUN: %libomptarget-compilexx-generic -O3 && %libomptarget-run-generic +// RUN: %libomptarget-compilexx-run-and-check-generic #include @@ -77,5 +77,9 @@ ret |= test_complex(); std::cout << "Testing double" << std::endl; ret |= test_complex(); + if (ret == 0) + std::cout << "PASS\n"; return ret; } + +// CHECK: PASS diff --git a/openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp b/openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp --- a/openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp +++ b/openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp @@ -36,5 +36,9 @@ return -1; } + std::cout << "PASS\n"; + return 0; } + +// CHECK: PASS