diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-09 05:09:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-09 05:09:44 +0000 |
commit | f9ca64368317a8cdfc59e6faf942030d245fb415 (patch) | |
tree | 119bd9edf800ed892ed7bf792af27646dbb4df82 /test/lib | |
parent | dce00119c6173eb2557df64d365bd858ccf3c7ba (diff) |
thread.c: refine stream closed message
* thread.c (Init_Thread): [EXPERIMENTAL] refine the "stream
closed" special exception message, by explicating that it is
caused by threading. [ruby-core:80583] [Bug #13405]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/test/unit.rb | 2 | ||||
-rw-r--r-- | test/lib/test/unit/parallel.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb index 24a689c736..7357a62359 100644 --- a/test/lib/test/unit.rb +++ b/test/lib/test/unit.rb @@ -225,7 +225,7 @@ module Test rescue Errno::EPIPE died rescue IOError - raise unless ["stream closed","closed stream"].include? $!.message + raise unless /stream closed|closed stream/ =~ $!.message died end end diff --git a/test/lib/test/unit/parallel.rb b/test/lib/test/unit/parallel.rb index 50d4427189..a71db5f56a 100644 --- a/test/lib/test/unit/parallel.rb +++ b/test/lib/test/unit/parallel.rb @@ -61,7 +61,7 @@ module Test begin th.join rescue IOError - raise unless ["stream closed","closed stream"].include? $!.message + raise unless /stream closed|closed stream/ =~ $!.message end i.close |