diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-10-20 17:57:20 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-10-20 17:57:20 +0900 |
commit | 67c25a34a7c70e3cec868472517b699b1e881857 (patch) | |
tree | 43db23bf339ad21692a7d979447694234e8d5410 /bootstraptest/test_ractor.rb | |
parent | 18cecda46e427362fa3447679e5d8a917b5d6cb6 (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/test_ractor.rb')
-rw-r--r-- | bootstraptest/test_ractor.rb | 2 |
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 |