[PATCH] Add FileCheck -implicit-check-not option to allow stricter tests without adding too many CHECK-NOTs manually.

Benjamin Kramer benny.kra at gmail.com
Fri Jul 11 04:51:46 PDT 2014


lg, with a minor test suggestion.

================
Comment at: test/FileCheck/implicit-check-not.txt:1-4
@@ +1,5 @@
+; RUN: sed 's#^;.*##' %s | FileCheck -check-prefix=CHECK-PASS -implicit-check-not=warning: %s
+; RUN: sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL1 -implicit-check-not=warning: %s 2>&1 | FileCheck %s -check-prefix CHECK-ERROR1
+; RUN: sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL2 -implicit-check-not=warning: %s 2>&1 | FileCheck %s -check-prefix CHECK-ERROR2
+; RUN: sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL3 -implicit-check-not=warning: %s 2>&1 | FileCheck %s -check-prefix CHECK-ERROR3
+
----------------
Can we also have a test with multiple implicit-check-not patterns?

http://reviews.llvm.org/D4462






More information about the llvm-commits mailing list