[PATCH] D15081: Fix the RUN on UBSAN unit tests

Sumanth Gundapaneni via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 30 08:10:53 PST 2015


sgundapa created this revision.
sgundapa added reviewers: rengolin, samsonov.
sgundapa added a subscriber: llvm-commits.

For the build set up which runs the unit tests using an emulator like QEMU,
the unit tests must be run using %run.

http://reviews.llvm.org/D15081

Files:
  test/ubsan/TestCases/Integer/summary.cpp
  test/ubsan/TestCases/Misc/Linux/ubsan_options.cc

Index: test/ubsan/TestCases/Misc/Linux/ubsan_options.cc
===================================================================
--- test/ubsan/TestCases/Misc/Linux/ubsan_options.cc
+++ test/ubsan/TestCases/Misc/Linux/ubsan_options.cc
@@ -1,5 +1,5 @@
 // RUN: %clangxx -fsanitize=integer -fsanitize-recover=integer %s -o %t
-// RUN: not %t 2>&1 | FileCheck %s
+// RUN: not %run %t 2>&1 | FileCheck %s
 
 // __ubsan_default_options() doesn't work on Darwin.
 // XFAIL: darwin
Index: test/ubsan/TestCases/Integer/summary.cpp
===================================================================
--- test/ubsan/TestCases/Integer/summary.cpp
+++ test/ubsan/TestCases/Integer/summary.cpp
@@ -1,5 +1,5 @@
 // RUN: %clangxx -fsanitize=integer %s -o %t
-// RUN: %t 2>&1 | FileCheck %s --check-prefix=CHECK-NOTYPE
+// RUN: %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NOTYPE
 // RUN: %env_ubsan_opts=report_error_type=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-TYPE
 // REQUIRES: ubsan-asan
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15081.41405.patch
Type: text/x-patch
Size: 989 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151130/41a9cfde/attachment.bin>


More information about the llvm-commits mailing list