Skip to content

Commit 2e3d9f7

Browse files
committed
[libObject] Tweak expected error output from llvm-ar
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351259 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 1d3503a commit 2e3d9f7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/Object/ar-create.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ RUN: rm -f %t.foo.a
1313
RUN: llvm-ar r %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
1414
RUN: rm -f %t.foo.a
1515

16-
CHECK: llvm-ar{{(.exe|.EXE)?}}: error loading '{{[^']+}}.foo.a':
16+
CHECK: llvm-ar{{(.exe|.EXE)?}}: error: error loading '{{[^']+}}.foo.a':
1717
CREATE: creating {{.*}}.foo.a

test/Object/ar-error.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Test if we get a proper error with a filename that doesn't exist
33
RUN: not llvm-ar r %t.out.a sparkle.o %t 2>&1 | FileCheck %s
44

55
# Don't check the message "No such file or directory".
6-
CHECK: llvm-ar{{(.exe|.EXE)?}}: sparkle.o:
6+
CHECK: llvm-ar{{(.exe|.EXE)?}}: error: sparkle.o:

test/Object/archive-extract.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ CHECK-GNU: 1465 Nov 19 03:01 2004 very_long_bytecode_file_name.bc
4949
CHECK-DARWIN: 1472 Nov 19 03:01 2004 very_long_bytecode_file_name.bc
5050

5151
RUN: not llvm-ar x %p/Inputs/GNU.a foo.o 2>&1 | FileCheck --check-prefix=NOTFOUND %s
52-
NOTFOUND: foo.o was not found
52+
NOTFOUND: error: 'foo.o' was not found
5353

5454
RUN: not llvm-ar x %p/Inputs/thin.a foo.o 2>&1 | FileCheck %s --check-prefix=THINEXTRACT
5555
THINEXTRACT: extracting from a thin archive is not supported

0 commit comments

Comments
 (0)