[PATCH] D31427: Use FileCheck instead of [

Rafael Ávila de Espíndola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 28 10:28:32 PDT 2017


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

https://reviews.llvm.org/D31427

Files:
  compiler-rt/test/asan/TestCases/Posix/coverage-maybe-open-file.cc


Index: compiler-rt/test/asan/TestCases/Posix/coverage-maybe-open-file.cc
===================================================================
--- compiler-rt/test/asan/TestCases/Posix/coverage-maybe-open-file.cc
+++ 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 --check-prefix=CHECK-test
 // RUN: cd .. && rm -rf %T/coverage-maybe-open-file
 
 #include <stdio.h>
@@ -30,3 +30,4 @@
 
 // CHECK-success: SUCCESS
 // CHECK-fail: FAIL
+// CHECK-test: {{^}}test{{$}}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31427.93260.patch
Type: text/x-patch
Size: 843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170328/3912e7d3/attachment.bin>


More information about the llvm-commits mailing list