forked from bytecodealliance/wasm-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some tests were modeled as "do a thing piped into another thing" but the second command didn't actually take any input. That meant that writing the stdout of the previous command into the next command might sometimes fail if the second command finishes before the write finishes. This commit fixes the various affected tests with the now-added ability to run multiple separate commands in a single file. These failures were detected by inserting a `sleep` before writing stdin and then fixing all tests. Closes bytecodealliance#1820
- Loading branch information
1 parent
51ade65
commit 5eca941
Showing
13 changed files
with
33 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
;; RUN[gen]: component unbundle --threshold 0 % --module-dir %tmpdir | ||
;; RUN[read0]: print %tmpdir/unbundled-module0.wasm | ||
;; RUN[read1]: print %tmpdir/unbundled-module1.wasm | ||
|
||
(component | ||
(core module $a | ||
(import "a" "a" (func)) | ||
) | ||
(core module $b | ||
(import "b" "b" (func)) | ||
) | ||
) |
Binary file not shown.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
tests/cli/wit-directory-output-in-deps-folder-with-multiple-version.wit.gen.stdout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Writing: %tmpdir/deps/b.wit | ||
Writing: %tmpdir/deps/b@0.2.0.wit | ||
Writing: %tmpdir/deps/c.wit | ||
Writing: %tmpdir/root.wit |
3 changes: 2 additions & 1 deletion
3
...s-folder-with-multiple-version.wit.stdout → ...der-with-multiple-version.wit.read.stdout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Writing: %tmpdir/deps/c.wit | ||
Writing: %tmpdir/deps/b.wit | ||
Writing: %tmpdir/root.wit |
3 changes: 2 additions & 1 deletion
3
...cli/wit-directory-output-valid.wit.stdout → ...it-directory-output-valid.wit.read.stdout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters