Skip to content

Commit

Permalink
tests: Update wasix test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
theduke committed Feb 10, 2023
1 parent 0b6c07a commit 715f71d
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
source: tests/integration/cli/tests/snapshot.rs
assertion_line: 273
expression: snapshot
---
{
"spec": {
"name": null,
"wasm_hash": "a14ec977d28125d9a8a24e5597553a19",
"use_packages": [],
"cli_args": [
"ls"
],
"stdin": null,
"debug_output": false,
"enable_threads": true
},
"result": {
"Success": {
"stdout": "",
"stderr": "error: failed to run `/tmp/wasmer-snapshot-tests/a14ec977d28125d9a8a24e5597553a19.wasm`\n│ 1: module instantiation failed (compiler: cranelift)\n╰─▶ 2: WebAssembly translation error: Error when converting wat: expected at least one module field\n --> <anon>:1:1\n |\n 1 | \n | ^\n",
"exit_code": 1
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
source: tests/integration/cli/tests/snapshot.rs
assertion_line: 308
expression: snapshot
---
{
"spec": {
"name": null,
"wasm_hash": "269f60f8ea24ed3fbbddd930abecaf6c",
"use_packages": [
"sharrattj/coreutils"
],
"cli_args": [],
"stdin": null,
"debug_output": false,
"enable_threads": true
},
"result": {
"Success": {
"stdout": "Main program started\nexecve: echo hi-from-child\nhi-from-child\nChild(2) exited with 0\nexecve: echo hi-from-parent\nhi-from-parent\n",
"stderr": "",
"exit_code": 0
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ expression: snapshot
},
"result": {
"Success": {
"stdout": "Parent has x = 0\nChild has x = 2\n",
"stdout": "Parent has x = 0\nChild has x = 2\nChild(2) exited with 5\n",
"stderr": "",
"exit_code": 0
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ expression: snapshot
},
"result": {
"Success": {
"stdout": "Child pid: 1\nhi\nChild status 0\n",
"stdout": "Child pid: 2\nhi\nChild status 0\n",
"stderr": "",
"exit_code": 0
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ expression: snapshot
},
"result": {
"Success": {
"stdout": "VAR1 in main before change: FirstEnum\nVAR1 in main after change: ThirdEnum(340282366920938463463374607431768211455)\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in main after thread midpoint: SecondEnum(998877)\nVAR1 in main after thread join: SecondEnum(998877)\n",
"stdout": "VAR1 in main before change: FirstEnum\nVAR1 in main after change: ThirdEnum(340282366920938463463374607431768211455)\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 1: FirstEnum\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 2: FirstEnum\nVAR1 in thread step 3: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in thread step 4: SecondEnum(4)\nVAR1 in main after thread midpoint: SecondEnum(998877)\nVAR1 in main after thread join: SecondEnum(998877)\n",
"stderr": "",
"exit_code": 0
}
Expand Down

0 comments on commit 715f71d

Please sign in to comment.