diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:04:03 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:04:03 +0000 |
commit | f8af5cf600354830d4ccf59732403f0f073eccb9 (patch) | |
tree | 2ba0398b4c42ad4f55561327538044fd2c925a8b /test/Object/nm-error.test | |
parent | 59d6cff90eecf31cb3dd860c4e786674cfdd42eb (diff) |
Diffstat (limited to 'test/Object/nm-error.test')
-rw-r--r-- | test/Object/nm-error.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Object/nm-error.test b/test/Object/nm-error.test new file mode 100644 index 0000000000000..146b88713f87c --- /dev/null +++ b/test/Object/nm-error.test @@ -0,0 +1,17 @@ +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 + +CHECK: U SomeOtherFunction +CHECK: 00000000 T main +CHECK: U puts + +CHECK: U SomeOtherFunction +CHECK: 00000000 T main +CHECK: U puts |