Testsuite driver doesn't properly handle the .wasm executable extension on wasm32
Since !9533 (closed) landed, the testsuite driver doesn't properly handle the default .wasm
executable extension when testing on wasm32. It will assume for each Txxx
, the output executable name is Txxx
instead of Txxx.wasm
, then the target wrapper would fail to find it.
Below is a rather quick hack to unblock my work, but more work is needed to dig into the driver and find a proper fix. One interesting question to ask is why the driver worked on windows so far, where there's a .exe
executable extension.
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 8c3ed23caf..b0b3d52f8b 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -1607,7 +1607,7 @@ def compile_and_run__(name: TestName,
if badResult(result):
return result
- cmd = './' + name;
+ cmd = './' + name + '.wasm';
# we don't check the compiler's stderr for a compile-and-run test
return simple_run( name, way, cmd, getTestOpts().extra_run_opts )