[Openmp-commits] [PATCH] D106387: [NFC][OpenMP] Fix an issue that no CHECK in test cases

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jul 20 12:20:34 PDT 2021


tianshilei1992 created this revision.
tianshilei1992 added a reviewer: abhinavgaba.
Herald added subscribers: guansong, yaxunl.
tianshilei1992 requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.

This fixes the complaint from FileCheck.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106387

Files:
  openmp/libomptarget/test/offloading/bug49021.cpp
  openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp


Index: openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp
===================================================================
--- openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp
+++ openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp
@@ -36,5 +36,9 @@
     return -1;
   }
 
+  std::cout << "PASS\n";
+
   return 0;
 }
+
+// CHECK: PASS
Index: openmp/libomptarget/test/offloading/bug49021.cpp
===================================================================
--- openmp/libomptarget/test/offloading/bug49021.cpp
+++ 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 <iostream>
 
@@ -77,5 +77,9 @@
   ret |= test_complex<float>();
   std::cout << "Testing double" << std::endl;
   ret |= test_complex<double>();
+  if (ret == 0)
+    std::cout << "PASS\n";
   return ret;
 }
+
+// CHECK: PASS


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106387.360230.patch
Type: text/x-patch
Size: 991 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210720/4f012900/attachment.bin>


More information about the Openmp-commits mailing list