File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 59
59
60
60
- artifact : x86_64-windows
61
61
os : windows-latest
62
- env :
63
- # TODO: tests are pretty close to passing on Windows but need some
64
- # final tweaks, namely testing the exit code doesn't work since
65
- # exit codes are different on Windows and the `mmap.c` tests seems
66
- # to have issues probably with line endings. Needs someone with a
67
- # Windows checkout tot test further.
68
- WASI_SDK_CI_SKIP_TESTS : 1
69
62
70
63
env : ${{ matrix.env || fromJSON('{}') }}
71
64
steps :
Original file line number Diff line number Diff line change
1
+ # This input is read at runtime during testing so ensure that the same input is
2
+ # read on unix and windows by forcing just-a-newline for line endings.
3
+ * .txt text eol =lf
Original file line number Diff line number Diff line change @@ -53,6 +53,14 @@ exit_status=0
53
53
|| exit_status=$?
54
54
echo $exit_status > " $exit_status_observed "
55
55
56
+ # On Windows Wasmtime will exit with error code 3 for aborts. On Unix Wasmtime
57
+ # will exit with status 134. Paper over this difference by pretending to be Unix
58
+ # on Windows and converting exit code 3 into 134 for the purposes of asserting
59
+ # test output.
60
+ if [ " $OSTYPE " = " msys" ] && [ " $exit_status " = " 3" ]; then
61
+ echo 134 > " $exit_status_observed "
62
+ fi
63
+
56
64
# Determine the reference files to compare with.
57
65
if [ -e " $input .stdout.expected" ]; then
58
66
stdout_expected=" $input .stdout.expected"
You can’t perform that action at this time.
0 commit comments