[compiler-rt] r299081 - Use FileCheck instead of [.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 30 07:02:09 PDT 2017
Author: rafael
Date: Thu Mar 30 09:02:08 2017
New Revision: 299081
URL: http://llvm.org/viewvc/llvm-project?rev=299081&view=rev
Log:
Use FileCheck instead of [.
Modified:
compiler-rt/trunk/test/asan/TestCases/Posix/coverage-maybe-open-file.cc
Modified: compiler-rt/trunk/test/asan/TestCases/Posix/coverage-maybe-open-file.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/coverage-maybe-open-file.cc?rev=299081&r1=299080&r2=299081&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/coverage-maybe-open-file.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/coverage-maybe-open-file.cc Thu Mar 30 09:02:08 2017
@@ -6,7 +6,7 @@
// RUN: mkdir -p %T/coverage-maybe-open-file && cd %T/coverage-maybe-open-file
// RUN: %env_asan_opts=coverage=1 %run %t | FileCheck %s --check-prefix=CHECK-success
// RUN: %env_asan_opts=coverage=0 %run %t | FileCheck %s --check-prefix=CHECK-fail
-// RUN: [ "$(cat test.sancov.packed)" == "test" ]
+// RUN: FileCheck %s < test.sancov.packed -implicit-check-not={{.}} --check-prefix=CHECK-test
// RUN: cd .. && rm -rf %T/coverage-maybe-open-file
#include <stdio.h>
@@ -30,3 +30,4 @@ int main(int argc, char **argv) {
// CHECK-success: SUCCESS
// CHECK-fail: FAIL
+// CHECK-test: {{^}}test{{$}}
More information about the llvm-commits
mailing list