summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-10-20 17:57:20 +0900
committerKoichi Sasada <ko1@atdot.net>2020-10-20 17:57:20 +0900
commit67c25a34a7c70e3cec868472517b699b1e881857 (patch)
tree43db23bf339ad21692a7d979447694234e8d5410 /bootstraptest
parent18cecda46e427362fa3447679e5d8a917b5d6cb6 (diff)
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>' ```
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_ractor.rb2
1 files changed, 1 insertions, 1 deletions
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