[libObject] Tweak expected error output from llvm-ar
authorJordan Rupprecht <rupprecht@google.com>
Tue, 15 Jan 2019 22:03:08 +0000 (22:03 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Tue, 15 Jan 2019 22:03:08 +0000 (22:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351259 91177308-0d34-0410-b5e6-96231b3b80d8

test/Object/ar-create.test
test/Object/ar-error.test
test/Object/archive-extract.test

index 95d994e06a48ce959e8376c772aa63bc5864b4cf..4b08c97317a8dadcb797c95af6c313abc71361a6 100644 (file)
@@ -13,5 +13,5 @@ RUN: rm -f %t.foo.a
 RUN: llvm-ar r %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
 RUN: rm -f %t.foo.a
 
-CHECK: llvm-ar{{(.exe|.EXE)?}}: error loading '{{[^']+}}.foo.a':
+CHECK: llvm-ar{{(.exe|.EXE)?}}: error: error loading '{{[^']+}}.foo.a':
 CREATE: creating {{.*}}.foo.a
index 7add9b448e1997987585dfff89c86ea915373c4b..d212555f5c39ac2696c346ff644ef31d6377a865 100644 (file)
@@ -3,4 +3,4 @@ Test if we get a proper error with a filename that doesn't exist
 RUN: not llvm-ar r %t.out.a sparkle.o %t 2>&1 | FileCheck %s
 
 # Don't check the message "No such file or directory".
-CHECK: llvm-ar{{(.exe|.EXE)?}}: sparkle.o:
+CHECK: llvm-ar{{(.exe|.EXE)?}}: error: sparkle.o:
index 85d853d79e792bb056b6b98ff1afa77be93f143a..916ccc254323b78eaba6454349484475809b0447 100644 (file)
@@ -49,7 +49,7 @@ CHECK-GNU: 1465 Nov 19 03:01 2004 very_long_bytecode_file_name.bc
 CHECK-DARWIN: 1472 Nov 19 03:01 2004 very_long_bytecode_file_name.bc
 
 RUN: not llvm-ar x %p/Inputs/GNU.a foo.o 2>&1 | FileCheck --check-prefix=NOTFOUND %s
-NOTFOUND: foo.o was not found
+NOTFOUND: error: 'foo.o' was not found
 
 RUN: not llvm-ar x %p/Inputs/thin.a foo.o 2>&1 | FileCheck %s --check-prefix=THINEXTRACT
 THINEXTRACT: extracting from a thin archive is not supported