/[packages]/cauldron/ruby/pristine/SOURCES/ruby-1.9.3-bignum-test-fix.patch
ViewVC logotype

Contents of /cauldron/ruby/pristine/SOURCES/ruby-1.9.3-bignum-test-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 397523 - (show annotations) (download)
Sat Feb 9 10:13:29 2013 UTC (7 years, 3 months ago) by schedbot
File size: 832 byte(s)
Copying release 1.9.3.p374-5.mga3 to pristine/ directory.
1 --- ruby-1.9.3-p0/test/ruby/test_bignum.rb.orig 2011-11-10 09:52:59.101925465 +0100
2 +++ ruby-1.9.3-p0/test/ruby/test_bignum.rb 2011-11-10 09:54:14.580798826 +0100
3 @@ -378,7 +378,7 @@
4 assert_equal(true, (2**32).even?)
5 end
6
7 - def interrupt
8 + def assert_interrupt
9 time = Time.now
10 start_flag = false
11 end_flag = false
12 @@ -387,14 +387,16 @@
13 yield
14 end_flag = true
15 end
16 - sleep 1
17 + Thread.pass until start_flag
18 thread.raise
19 thread.join rescue nil
20 - start_flag && !end_flag && Time.now - time < 10
21 + time = Time.now - time
22 + assert_equal([true, false], [start_flag, end_flag])
23 + assert_operator(time, :<, 10)
24 end
25
26 def test_interrupt
27 - assert(interrupt { (65536 ** 65536).to_s })
28 + assert_interrupt {(65536 ** 65536).to_s}
29 end
30
31 def test_too_big_to_s

  ViewVC Help
Powered by ViewVC 1.1.28