Convert an assert that can fail into error checking.
[oota-llvm.git] / test / Object / nm-error.test
index 146b88713f87cade84d06f060299e987cd8427b8..bed9ccbd1f21e5a4d14c7d7eb9ac6d76a25a38a5 100644 (file)
@@ -1,12 +1,10 @@
 Test that llvm-nm returns an error because of the unknown file type, but
 keeps processing subsequent files.
 
-Note: We use a temporary file since the tests don't run with pipefail.
-
 RUN: touch %t
 RUN: not llvm-nm %p/Inputs/trivial-object-test.elf-i386 %t \
-RUN:             %p/Inputs/trivial-object-test.elf-i386 > %t.log
-RUN: FileCheck %s < %t.log
+RUN:             %p/Inputs/trivial-object-test.elf-i386 | \
+RUN: FileCheck %s
 
 CHECK:          U SomeOtherFunction
 CHECK: 00000000 T main