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

llvm-svn: 309317

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

diff --git a/llvm/test/tools/llvm-mt/Inputs/empty.manifest b/llvm/test/tools/llvm-mt/Inputs/empty.manifest
new file mode 100644 (file)
index 0000000..e69de29
index 50246c9..762a664 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