[llvm-objdump] Use report_error() and improve error coverage.
[oota-llvm.git] / test / tools / llvm-objdump / malformed-archives.test
index e0f165d37ed7c9b8a190807abf56dc68fed388ef..c477022e2e11aa51bd8068a9831a86bf07ed7260 100644 (file)
@@ -1,7 +1,7 @@
 // These test checks that llvm-objdump will not crash with malformed Archive
 // files.  So the check line is not all that important but the bug fixes to
 // make sure llvm-objdump is robust is what matters.
-# RUN: llvm-objdump -macho -archive-headers \
+# RUN: not llvm-objdump -macho -archive-headers \
 # RUN:   %p/Inputs/libbogus1.a \
 # RUN:   2>&1 | FileCheck -check-prefix=bogus1 %s