[前][次][番号順一覧][スレッド一覧]

ruby-changes:71441

From: Yuta <ko1@a...>
Date: Thu, 17 Mar 2022 12:26:39 +0900 (JST)
Subject: [ruby-changes:71441] e499d32689 (master): spec: disable part of require_relative spec where uses symlink for WASI

https://git.ruby-lang.org/ruby.git/commit/?id=e499d32689

From e499d326899d2e7eb7e53702ffb8f7b7aa38124a Mon Sep 17 00:00:00 2001
From: Yuta Saito <kateinoigakukun@g...>
Date: Mon, 28 Feb 2022 02:55:54 +0000
Subject: spec: disable part of require_relative spec where uses symlink for
 WASI

cap-std, an underlying sandbox implementation of WASI in wasmtime, doesn't
allow to create a symlink to an absolute path to enforce sandbox restriction.

See also: https://github.com/bytecodealliance/cap-std/commit/257867a1d3a589b2561b00111ffa4db3bab0e8be
---
 spec/ruby/core/kernel/require_relative_spec.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spec/ruby/core/kernel/require_relative_spec.rb b/spec/ruby/core/kernel/require_relative_spec.rb
index d4146eb3c8..5999855de6 100644
--- a/spec/ruby/core/kernel/require_relative_spec.rb
+++ b/spec/ruby/core/kernel/require_relative_spec.rb
@@ -207,7 +207,7 @@ describe "Kernel#require_relative with a relative path" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/kernel/require_relative_spec.rb#L207
       $LOADED_FEATURES.should include(@abs_path)
     end
 
-    platform_is_not :windows do
+    platform_is_not :windows, :wasi do
       describe "with symlinks" do
         before :each do
           @symlink_to_code_dir = tmp("codesymlink")
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]