[compiler-rt] r301541 - Add missing FileCheck, update CHECK lines and avoid subshell.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 27 06:32:10 PDT 2017
Author: rafael
Date: Thu Apr 27 08:32:09 2017
New Revision: 301541
URL: http://llvm.org/viewvc/llvm-project?rev=301541&view=rev
Log:
Add missing FileCheck, update CHECK lines and avoid subshell.
Modified:
compiler-rt/trunk/test/asan/TestCases/Posix/coverage-fork-direct.cc
Modified: compiler-rt/trunk/test/asan/TestCases/Posix/coverage-fork-direct.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/coverage-fork-direct.cc?rev=301541&r1=301540&r2=301541&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/coverage-fork-direct.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/coverage-fork-direct.cc Thu Apr 27 08:32:09 2017
@@ -1,8 +1,10 @@
// RUN: %clangxx_asan -fsanitize-coverage=func %s -o %t
// RUN: rm -rf %T/coverage-fork-direct
// RUN: mkdir -p %T/coverage-fork-direct && cd %T/coverage-fork-direct
-// RUN: (%env_asan_opts=coverage=1:coverage_direct=1:verbosity=1 %run %t; \
-// RUN: %sancov rawunpack *.sancov.raw; %sancov print *.sancov) 2>&1
+// RUN: %env_asan_opts=coverage=1:coverage_direct=1:verbosity=1 %run %t > %t.log 2>&1
+// RUN: %sancov rawunpack *.sancov.raw
+// RUN: %sancov print *.sancov >> %t.log 2>&1
+// RUN: FileCheck %s < %t.log
//
// XFAIL: android
@@ -34,5 +36,7 @@ int main(int argc, char **argv) {
// CHECK-DAG: Child PID: [[ChildPID:[0-9]+]]
// CHECK-DAG: Parent PID: [[ParentPID:[0-9]+]]
-// CHECK-DAG: read 3 PCs from {{.*}}.[[ParentPID]].sancov
-// CHECK-DAG: read 1 PCs from {{.*}}.[[ChildPID]].sancov
+// CHECK-DAG: read 3 64-bit PCs from {{.*}}.[[ParentPID]].sancov
+
+// FIXME: this is missing
+// XCHECK-DAG: read 1 64-bit PCs from {{.*}}.[[ChildPID]].sancov
More information about the llvm-commits
mailing list