summaryrefslogtreecommitdiff
path: root/test/Object/nm-archive.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/Object/nm-archive.test')
-rw-r--r--test/Object/nm-archive.test7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/Object/nm-archive.test b/test/Object/nm-archive.test
index 8f8cdbe9f08cf..1a13c23f2450e 100644
--- a/test/Object/nm-archive.test
+++ b/test/Object/nm-archive.test
@@ -55,9 +55,10 @@ RUN: llvm-nm %p/Inputs/archive-test.a-empty
This archive has an unaligned member and a unknown format member.
GNU AR is able to parse the unaligned member and warns about the member with
-the unknown format. We should probably simply warn on both. For now just check
-that we don't produce an error.
-RUN: llvm-nm %p/Inputs/corrupt-archive.a
+the unknown format. We should probably simply warn on both. For now we just
+produce an error for the unknown format.
+RUN: not llvm-nm %p/Inputs/corrupt-archive.a 2>&1 | FileCheck %s -check-prefix CORRUPT
+CORRUPT: corrupt-archive.a(trivial-object-test2.elf-x86-64) Invalid data was encountered while parsing the file
RUN: llvm-nm %p/Inputs/thin.a | FileCheck %s -check-prefix THIN