[compiler-rt] r254467 - Fix the RUN on UBSAN unit tests

Sumanth Gundapaneni via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 1 15:03:09 PST 2015


Author: sgundapa
Date: Tue Dec  1 17:03:08 2015
New Revision: 254467

URL: http://llvm.org/viewvc/llvm-project?rev=254467&view=rev
Log:
Fix the RUN on UBSAN unit tests

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

Differential Revision: http://reviews.llvm.org/D15081

Modified:
    compiler-rt/trunk/test/ubsan/TestCases/Integer/summary.cpp
    compiler-rt/trunk/test/ubsan/TestCases/Misc/Linux/ubsan_options.cc

Modified: compiler-rt/trunk/test/ubsan/TestCases/Integer/summary.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/Integer/summary.cpp?rev=254467&r1=254466&r2=254467&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/Integer/summary.cpp (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/Integer/summary.cpp Tue Dec  1 17:03:08 2015
@@ -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
 

Modified: compiler-rt/trunk/test/ubsan/TestCases/Misc/Linux/ubsan_options.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/Misc/Linux/ubsan_options.cc?rev=254467&r1=254466&r2=254467&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/Misc/Linux/ubsan_options.cc (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/Misc/Linux/ubsan_options.cc Tue Dec  1 17:03:08 2015
@@ -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




More information about the llvm-commits mailing list