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

ruby-changes:63385

From: Koichi <ko1@a...>
Date: Tue, 20 Oct 2020 17:58:46 +0900 (JST)
Subject: [ruby-changes:63385] 67c25a34a7 (master): skip `echo foo` on Solaris

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

From 67c25a34a7c70e3cec868472517b699b1e881857 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Tue, 20 Oct 2020 17:57:20 +0900
Subject: skip `echo foo` on Solaris

On Solaris, it seems to access ENV in ``, so skip it now.

```
stderr output is not empty
   Exception `NameError' at bootstraptest.tmp.rb:7 - can not access non-sharable objects in constant Object::ENV by non-main Ractor.
   #<Thread:0x0044cdf0 run> terminated with exception (report_on_exception is true):
   bootstraptest.tmp.rb:7:in ``': can not access non-sharable objects in constant Object::ENV by non-main Ractor. (NameError)
   Exception `Ractor::RemoteError' at <internal:ractor>:130 - thrown by remote Ractor.
   <internal:ractor>:130:in `take': thrown by remote Ractor. (Ractor::RemoteError)
           from bootstraptest.tmp.rb:55:in `<main>'
   bootstraptest.tmp.rb:7:in ``': can not access non-sharable objects in constant Object::ENV by non-main Ractor. (NameError)
           from bootstraptest.tmp.rb:7:in `ractor_local_globals'
           from bootstraptest.tmp.rb:54:in `block in <main>'
```

diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb
index a02adb6..74edfa8 100644
--- a/bootstraptest/test_ractor.rb
+++ b/bootstraptest/test_ractor.rb
@@ -618,7 +618,7 @@ assert_equal 'true', %q{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_ractor.rb#L618
 
   def ractor_local_globals
     /a(b)(c)d/ =~ 'abcd' # for $~
-    `echo foo`
+    `echo foo` unless  /solaris/ !~ RUBY_PLATFORM
 
     {
      # ractor-local (derived from created ractor): debug
-- 
cgit v0.10.2


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

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