[PATCH] D31622: Avoid sub shell

Rafael Ávila de Espíndola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 3 13:02:24 PDT 2017


rafael created this revision.
Herald added a subscriber: kubamracek.

https://reviews.llvm.org/D31622

Files:
  compiler-rt/test/asan/TestCases/Linux/coverage-missing.cc


Index: compiler-rt/test/asan/TestCases/Linux/coverage-missing.cc
===================================================================
--- compiler-rt/test/asan/TestCases/Linux/coverage-missing.cc
+++ compiler-rt/test/asan/TestCases/Linux/coverage-missing.cc
@@ -22,7 +22,8 @@
 // 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 || true ) | not grep "^<"
+// RUN: diff bar.txt foo-missing-with-main.txt > %t.log || true
+// RUN: not grep "^<" %t.log
 
 // Second case: coverage from DSO.
 // cd %T
@@ -41,7 +42,8 @@
 // RUN: rm *.sancov
 // RUN: count 3 < bar.txt
 // RUN: %sancov missing %dynamiclib < foo.txt > foo-missing.txt
-// RUN: ( diff bar.txt foo-missing.txt || true ) | not grep "^<"
+// RUN: diff bar.txt foo-missing.txt > %t.log || true
+// RUN: not grep "^<" %t.log
 
 // REQUIRES: x86-target-arch
 // XFAIL: android


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31622.93932.patch
Type: text/x-patch
Size: 1045 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170403/fd3442a7/attachment.bin>


More information about the llvm-commits mailing list