From 03c37c9099ffc4a733aa7ebd198ea26c12639115 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Sun, 22 Mar 2015 15:58:21 +0000 Subject: Prevent CHECK-NOTs from matching file paths A build directory with a name like `build-Werror` would hit a false positive on these `CHECK-NOT`s before, since the actual error line looks like: .../build-Werror/bin/llvm-as :1:2: error: ... Switch to using: CHECK-NOT: error: (note the trailing semi-colon) to avoid matching almost any file path. llvm-svn: 232917 --- llvm/test/Assembler/invalid-mdcompileunit-language-overflow.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/test/Assembler/invalid-mdcompileunit-language-overflow.ll') diff --git a/llvm/test/Assembler/invalid-mdcompileunit-language-overflow.ll b/llvm/test/Assembler/invalid-mdcompileunit-language-overflow.ll index 14dab17868f..1849867edae 100644 --- a/llvm/test/Assembler/invalid-mdcompileunit-language-overflow.ll +++ b/llvm/test/Assembler/invalid-mdcompileunit-language-overflow.ll @@ -1,6 +1,6 @@ ; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s -; CHECK-NOT: error +; CHECK-NOT: error: !0 = !MDCompileUnit(language: 65535, file: !MDFile(filename: "a", directory: "b")) -- cgit v1.2.3