]> granicus.if.org Git - clang/commitdiff
Use -NOT prefix instead of adding `not` to FileCheck.
authorRui Ueyama <ruiu@google.com>
Wed, 21 Jun 2017 16:50:38 +0000 (16:50 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 21 Jun 2017 16:50:38 +0000 (16:50 +0000)
If we want to make sure that a particular string is not in an output,
the regular way of doing it is to add `-NOT` prefix instead of checking
if FileCheck resulted in an error.

Differential Revision: https://reviews.llvm.org/D34435

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305930 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/autocomplete.c

index 78ac4b07cf07aab94895ab2a8d7348b230d8535d..c7e339b616f1667b92a8dbb93a435c3082ba158b 100644 (file)
@@ -2,8 +2,8 @@
 // FSYN: -fsyntax-only
 // RUN: %clang --autocomplete=-s | FileCheck %s -check-prefix=STD
 // STD: -std={{.*}}-stdlib=
-// RUN: %clang --autocomplete=foo | not FileCheck %s -check-prefix=NONE
-// NONE: foo
+// RUN: %clang --autocomplete=foo | FileCheck %s -check-prefix=FOO
+// FOO-NOT: foo
 // RUN: %clang --autocomplete=-stdlib=,l | FileCheck %s -check-prefix=STDLIB
 // STDLIB: libc++ libstdc++
 // RUN: %clang --autocomplete=-stdlib=, | FileCheck %s -check-prefix=STDLIBALL