mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Decrease counts of tests which spend so long time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
88175d1779
commit
c5b4aedab6
2 changed files with 8 additions and 4 deletions
|
@ -30,7 +30,7 @@ class TestThread < Test::Unit::TestCase
|
|||
def test_mutex_synchronize
|
||||
m = Mutex.new
|
||||
r = 0
|
||||
max = 100
|
||||
max = 10
|
||||
(1..max).map{
|
||||
Thread.new{
|
||||
i=0
|
||||
|
@ -108,7 +108,7 @@ class TestThread < Test::Unit::TestCase
|
|||
$:.unshift File.join(File.dirname(dir), 'ruby')
|
||||
require 'envutil'
|
||||
$:.shift
|
||||
10.times {
|
||||
3.times {
|
||||
result = `#{EnvUtil.rubybin} #{lbtest}`
|
||||
assert(!$?.coredump?, '[ruby-dev:30653]')
|
||||
assert_equal("exit.", result[/.*\Z/], '[ruby-dev:30653]')
|
||||
|
@ -124,6 +124,10 @@ class TestThread < Test::Unit::TestCase
|
|||
assert_equal(-1, t1.priority)
|
||||
assert_equal(-3, t2.priority)
|
||||
sleep 0.5
|
||||
5.times do
|
||||
break if c1 > c2
|
||||
sleep 0.1
|
||||
end
|
||||
t1.kill
|
||||
t2.kill
|
||||
assert(c1 > c2, "[ruby-dev:33124]")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue