diff options
author | Ayke van Laethem <[email protected]> | 2019-03-06 10:45:34 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-03-06 11:28:59 +0100 |
commit | 5939729c45c68e23be4013ab75b628405c425dab (patch) | |
tree | a0f12852c3982a8e26b7293f0d84cb7a9792446a | |
parent | c7b91da8c41f5b6c268a3c434c414925ee7d02ff (diff) | |
download | tinygo-5939729c45c68e23be4013ab75b628405c425dab.tar.gz tinygo-5939729c45c68e23be4013ab75b628405c425dab.zip |
main: only run WebAssembly tests on Linux
The WebAssembly target is not yet considered stable in LLVM 7, but has
been enabled in the Debian builds so tests can run on Debian. However,
the Homebrew builds don't have it enabled which results in test
failures.
Temporarily run WebAssembly tests only on Linux to fix this. This can be
reverted after a switch to LLVM 8, which has WebAssembly enabled by
default.
-rw-r--r-- | main_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/main_test.go b/main_test.go index 1eb6199dd..80832288e 100644 --- a/main_test.go +++ b/main_test.go @@ -81,16 +81,16 @@ func TestCompiler(t *testing.T) { runTest(path, tmpdir, "aarch64--linux-gnu", t) }) } - } - t.Log("running tests for WebAssembly...") - for _, path := range matches { - if path == "testdata/gc.go" { - continue // known to fail + t.Log("running tests for WebAssembly...") + for _, path := range matches { + if path == "testdata/gc.go" { + continue // known to fail + } + t.Run(path, func(t *testing.T) { + runTest(path, tmpdir, "wasm", t) + }) } - t.Run(path, func(t *testing.T) { - runTest(path, tmpdir, "wasm", t) - }) } } |