Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Unified Diff: tests_lit/parse_errs/multiple-modules.test

Issue 1362643002: Fix pnacl-sz to not accept files containing multiple modules. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests_lit/parse_errs/Inputs/multiple-modules.tbc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/parse_errs/multiple-modules.test
diff --git a/tests_lit/parse_errs/multiple-modules.test b/tests_lit/parse_errs/multiple-modules.test
new file mode 100644
index 0000000000000000000000000000000000000000..62ff6aa6f5b9a8c45401654fd045c0a1f422b5fa
--- /dev/null
+++ b/tests_lit/parse_errs/multiple-modules.test
@@ -0,0 +1,22 @@
+; Tests that we check for multiple modules in the bitcode file.
+
+; REQUIRES: no_minimal_build
+
+; RUN: not %pnacl_sz -bitcode-as-text \
+; RUN: %p/Inputs/multiple-modules.tbc \
+; RUN: -bitcode-format=pnacl -notranslate -build-on-read 2>&1 \
+; RUN: | FileCheck %s
+
+; CHECK: Input can't contain more than one module
+
+; RUN: pnacl-bcfuzz -bitcode-as-text \
+; RUN: %p/Inputs/multiple-modules.tbc -output - \
+; RUN: | not pnacl-bcdis -no-records | FileCheck -check-prefix=ASM %s
+
+; ASM: module { // BlockID = 8
+; ASM: version 1;
+; ASM: }
+; ASM: module { // BlockID = 8
+; ASM: version 1;
+; ASM: }
+; ASM: Error(38:4): Expected 1 top level block in bitcode: Found:2
« no previous file with comments | « tests_lit/parse_errs/Inputs/multiple-modules.tbc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698