From 67c25a34a7c70e3cec868472517b699b1e881857 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 20 Oct 2020 17:57:20 +0900 Subject: [PATCH] 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. # 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 :130 - thrown by remote Ractor. :130:in `take': thrown by remote Ractor. (Ractor::RemoteError) from bootstraptest.tmp.rb:55:in `
' 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
' ``` --- bootstraptest/test_ractor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb index a02adb612a..74edfa8cd6 100644 --- a/bootstraptest/test_ractor.rb +++ b/bootstraptest/test_ractor.rb @@ -618,7 +618,7 @@ assert_equal 'true', %q{ 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