[llvm] r309317 - Add test to reject merging of empty manifest.
Eric Beckmann via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 27 12:58:12 PDT 2017
Author: ecbeckmann
Date: Thu Jul 27 12:58:12 2017
New Revision: 309317
URL: http://llvm.org/viewvc/llvm-project?rev=309317&view=rev
Log:
Add test to reject merging of empty manifest.
Reviewers: ruiu, rnk
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D35954
Added:
llvm/trunk/test/tools/llvm-mt/Inputs/empty.manifest
Modified:
llvm/trunk/test/tools/llvm-mt/xml_error.test
Added: llvm/trunk/test/tools/llvm-mt/Inputs/empty.manifest
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mt/Inputs/empty.manifest?rev=309317&view=auto
==============================================================================
(empty)
Modified: llvm/trunk/test/tools/llvm-mt/xml_error.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mt/xml_error.test?rev=309317&r1=309316&r2=309317&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mt/xml_error.test (original)
+++ llvm/trunk/test/tools/llvm-mt/xml_error.test Thu Jul 27 12:58:12 2017
@@ -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
More information about the llvm-commits
mailing list