]> granicus.if.org Git - llvm/commitdiff
Add test to reject merging of empty manifest.
authorEric Beckmann <ecbeckmann@google.com>
Thu, 27 Jul 2017 19:58:12 +0000 (19:58 +0000)
committerEric Beckmann <ecbeckmann@google.com>
Thu, 27 Jul 2017 19:58:12 +0000 (19:58 +0000)
Reviewers: ruiu, rnk

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D35954

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309317 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/llvm-mt/Inputs/empty.manifest [new file with mode: 0644]
test/tools/llvm-mt/xml_error.test

diff --git a/test/tools/llvm-mt/Inputs/empty.manifest b/test/tools/llvm-mt/Inputs/empty.manifest
new file mode 100644 (file)
index 0000000..e69de29
index 50246c962a1d8d219d19d0e64728663ed8e238b5..762a6640254c35ba85e27d6c52783fbf3ef3cfbf 100644 (file)
@@ -1,11 +1,18 @@
 REQUIRES: libxml2
 UNSUPPORTED: windows
 
-RUN: not llvm-mt /manifest %p/Inputs/bad.manifest 2>&1 >/dev/null | FileCheck %s
+RUN: not llvm-mt /manifest %p/Inputs/bad.manifest 2>&1 >/dev/null | FileCheck \
+RUN:   %s
 
 CHECK: llvm-mt error: invalid xml document
 
+RUN: not llvm-mt /manifest %p/Inputs/empty.manifest 2>&1 >/dev/null | \
+RUN:   FileCheck %s -check-prefix=EMPTY
+
+EMPTY: llvm-mt error: attempted to merge empty manifest
+
 RUN: llvm-mt /inputresource:foo.res /manifest \
-RUN:   %p/Inputs/test_manifest.manifest | FileCheck %s -check-prefix=NOT_SUPPORTED
+RUN:   %p/Inputs/test_manifest.manifest | FileCheck %s \
+RUN:    -check-prefix=NOT_SUPPORTED
 
 NOT_SUPPORTED: llvm-mt: ignoring unsupported 'inputresource:' option