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

ruby-changes:68248

From: Jeremy <ko1@a...>
Date: Tue, 5 Oct 2021 01:43:34 +0900 (JST)
Subject: [ruby-changes:68248] 3381fa5458 (master): Only rescue realpath calls during require on Solaris

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

From 3381fa5458d26fee1a5d109ba65e87212f644ac0 Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
Date: Mon, 4 Oct 2021 07:44:51 -0700
Subject: Only rescue realpath calls during require on Solaris

Remove temporary skip of test_no_curdir to see if this fixes the
problem.
---
 load.c                    | 2 +-
 test/ruby/test_process.rb | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/load.c b/load.c
index 38b26881ce..f0f7ac6cef 100644
--- a/load.c
+++ b/load.c
@@ -1060,7 +1060,7 @@ rb_ext_ractor_safe(bool flag) https://github.com/ruby/ruby/blob/trunk/load.c#L1060
     GET_THREAD()->ext_config.ractor_safe = flag;
 }
 
-#if 1
+#ifdef __sun
 static VALUE
 required_feature__realpath(VALUE path)
 {
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 98c934945c..07aa58418b 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1732,9 +1732,6 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1732
   end
 
   def test_no_curdir
-    if /solaris/i =~ RUBY_PLATFORM
-      skip "Temporary skip to avoid CI failures after commit to use realpath on required files"
-    end
     with_tmpchdir {|d|
       Dir.mkdir("vd")
       status = nil
-- 
cgit v1.2.1


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

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