diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-24 01:28:32 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-24 01:28:32 +0000 |
commit | 2169d5d3c6babc251f058fca9b42b8af15eb74c1 (patch) | |
tree | a873ac469d0479735e0babad6dd62d7639f8d54d /test | |
parent | 6e1ed146069bc0a879277eba9ef286e2ec595147 (diff) | |
download | ruby-2169d5d3c6babc251f058fca9b42b8af15eb74c1.tar.gz |
* test/ruby/test_signal.rb (TestSignal#test_exit_action): Thread
may terminate before sysread. [ruby-dev:36835]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_signal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb index 7d9acfdc12..9414b6539e 100644 --- a/test/ruby/test_signal.rb +++ b/test/ruby/test_signal.rb @@ -41,7 +41,7 @@ class TestSignal < Test::Unit::TestCase Signal.trap(:USR1, "EXIT") w0.close w.syswrite("a") - Thread.start { Thread.pass } + Thread.start { sleep(2) } r0.sysread(4096) } r.sysread(1) |