From bc16aa9551e1cb9672a85b92044fb5865227649c Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 30 Mar 2017 14:02:08 +0000 Subject: [PATCH] Use FileCheck instead of [. llvm-svn: 299081 --- compiler-rt/test/asan/TestCases/Posix/coverage-maybe-open-file.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler-rt/test/asan/TestCases/Posix/coverage-maybe-open-file.cc b/compiler-rt/test/asan/TestCases/Posix/coverage-maybe-open-file.cc index cab3d57..95f2b54 100644 --- a/compiler-rt/test/asan/TestCases/Posix/coverage-maybe-open-file.cc +++ b/compiler-rt/test/asan/TestCases/Posix/coverage-maybe-open-file.cc @@ -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 @@ -30,3 +30,4 @@ int main(int argc, char **argv) { // CHECK-success: SUCCESS // CHECK-fail: FAIL +// CHECK-test: {{^}}test{{$}} -- 2.7.4