mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
spec: skip ruby_exe tests for wasi due to lack of subprocess
This commit is contained in:
parent
412991268f
commit
fe2e5c13f9
Notes:
git
2022-03-14 23:04:35 +09:00
2 changed files with 6 additions and 0 deletions
|
@ -41,6 +41,10 @@ class PlatformGuard < SpecGuard
|
|||
os?(:windows)
|
||||
end
|
||||
|
||||
def self.wasi?
|
||||
os?(:wasi)
|
||||
end
|
||||
|
||||
def self.wsl?
|
||||
if defined?(@wsl_p)
|
||||
@wsl_p
|
||||
|
|
|
@ -112,6 +112,8 @@ unless Object.const_defined?(:RUBY_EXE) and RUBY_EXE
|
|||
end
|
||||
|
||||
def ruby_exe(code = :not_given, opts = {})
|
||||
skip "WASI doesn't provide subprocess" if PlatformGuard.wasi?
|
||||
|
||||
if opts[:dir]
|
||||
raise "ruby_exe(..., dir: dir) is no longer supported, use Dir.chdir"
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue