[compiler-rt] r237147 - [sanitizer] Override pipefail in coverage-missing test.
Sergey Matveev
earthdok at google.com
Tue May 12 09:32:41 PDT 2015
Author: smatveev
Date: Tue May 12 11:32:41 2015
New Revision: 237147
URL: http://llvm.org/viewvc/llvm-project?rev=237147&view=rev
Log:
[sanitizer] Override pipefail in coverage-missing test.
This should finally fix it.
Modified:
compiler-rt/trunk/test/asan/TestCases/Linux/coverage-missing.cc
Modified: compiler-rt/trunk/test/asan/TestCases/Linux/coverage-missing.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/coverage-missing.cc?rev=237147&r1=237146&r2=237147&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/coverage-missing.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/coverage-missing.cc Tue May 12 11:32:41 2015
@@ -21,13 +21,10 @@
// RUN: [ $(cat bar.txt | wc -l) == 4 ]
// RUN: %sancov missing %t < foo.txt > foo-missing.txt
// RUN: sort main.txt foo-missing.txt -o foo-missing-with-main.txt
-// Next two lines are debug output.
-// RUN: tail -n +1 foo.txt bar.txt main.txt foo-missing.txt foo-missing-with-main.txt
-// RUN: echo; objdump -d %t | grep '__sanitizer_cov'
// The "missing from foo" set may contain a few bogus PCs from the sanitizer
// runtime, but it must include the entire "bar" code path as a subset. Sorted
// lists can be tested for set inclusion with diff + grep.
-// RUN: diff bar.txt foo-missing-with-main.txt | not grep "^<"
+// RUN: ( diff bar.txt foo-missing-with-main.txt || true ) | not grep "^<"
// Second case: coverage from DSO.
// cd %T
@@ -46,10 +43,7 @@
// RUN: rm *.sancov
// RUN: [ $(cat bar.txt | wc -l) == 3 ]
// RUN: %sancov missing %dynamiclib < foo.txt > foo-missing.txt
-// Next two lines are debug output.
-// RUN: tail -n +1 foo.txt bar.txt foo-missing.txt
-// RUN: echo; objdump -d %t | grep '__sanitizer_cov'
-// RUN: diff bar.txt foo-missing.txt | not grep "^<"
+// RUN: ( diff bar.txt foo-missing.txt || true ) | not grep "^<"
// REQUIRES: x86_64-supported-target, i386-supported-target
// XFAIL: android
More information about the llvm-commits
mailing list