summaryrefslogtreecommitdiff
path: root/basictest
diff options
context:
space:
mode:
authorYuta Saito <kateinoigakukun@gmail.com>2022-01-15 22:11:55 +0900
committerYuta Saito <kateinoigakukun@gmail.com>2022-01-19 11:19:06 +0900
commitdd99ee1f7d366e6b92b952fb96221bf0ea3dc348 (patch)
tree328045def23fc905bfcb3a808fce8acc4995b8a9 /basictest
parentdf31fa4a51822faccb35aa7a253c8af015869d0c (diff)
[wasm] bootstraptest, basictest: disable backquote literal tests
WASI doesn't support spawning a new process for now.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5407
Diffstat (limited to 'basictest')
-rwxr-xr-xbasictest/test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/basictest/test.rb b/basictest/test.rb
index 52008b78db..95875b52a6 100755
--- a/basictest/test.rb
+++ b/basictest/test.rb
@@ -1960,6 +1960,8 @@ test_ok(p1.call == 5)
test_ok(i7 == nil)
end
+# WASI doesn't support spawning a new process for now.
+unless /wasi/ =~ RUBY_PLATFORM
test_check "system"
test_ok(`echo foobar` == "foobar\n")
test_ok(`./miniruby -e 'print "foobar"'` == 'foobar')
@@ -2010,6 +2012,7 @@ test_ok(done)
File.unlink script_tmp or `/bin/rm -f "#{script_tmp}"`
File.unlink "#{script_tmp}.bak" or `/bin/rm -f "#{script_tmp}.bak"`
+end # not /wasi/ =~ RUBY_PLATFORM
test_check "const"
TEST1 = 1