summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_thread.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-24 14:02:15 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-24 14:02:15 +0000
commit1974e1fe270b3cad1f2520aa63eb8373cb13fdfa (patch)
tree94f897b9af7d25d7fea9e6903630edc5e8ab2d73 /test/ruby/test_thread.rb
parent46d58ecbe324c9ac2d057f9b262d0e14528a5b25 (diff)
downloadruby-1974e1fe270b3cad1f2520aa63eb8373cb13fdfa.tar.gz
ruby-1974e1fe270b3cad1f2520aa63eb8373cb13fdfa.tar.xz
ruby-1974e1fe270b3cad1f2520aa63eb8373cb13fdfa.zip
* test/ruby/test_thread.rb: fix typos.
* test/ruby/envutil.rb (rubyexec): move Open3.popen3 call into timeout block. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_thread.rb')
-rw-r--r--test/ruby/test_thread.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index b03b60b72..bdb9ec24f 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -109,12 +109,12 @@ class TestThread < Test::Unit::TestCase
t1.priority = -1
t2 = Thread.new { loop { c2 += 1 } }
t2.priority = -3
- assert(-1, t1.priority)
- assert(-3, t2.priority)
+ assert_equal(-1, t1.priority)
+ assert_equal(-3, t2.priority)
sleep 0.5
t1.kill
t2.kill
- #assert(c1 > c2 * 2, "[ruby-dev:33124]")
+ assert(c1 > c2 * 2, "[ruby-dev:33124]")
end
def test_new
@@ -384,7 +384,7 @@ class TestThread < Test::Unit::TestCase
def test_select_wait
assert_nil(IO.select(nil, nil, nil, 1))
t = Thread.new do
- assert_nil(IO.select(nil, nil, nil, nil))
+ IO.select(nil, nil, nil, nil)
end
sleep 0.5
t.kill