Remove sleep in GVL test, to better trigger errors in the GVL wrapping.
Lars Kanis
8 years ago
16 | 16 | count = 0 |
17 | 17 | th = Thread.new do |
18 | 18 | loop do |
19 | sleep 0.001 | |
20 | 19 | count += 1 |
21 | 20 | end |
22 | 21 | end |
29 | 28 | outfile.takeBuffer |
30 | 29 | end |
31 | 30 | |
32 | assert_operator(count, :>=, 10) | |
31 | assert_operator(count, :>=, 1000000) | |
33 | 32 | assert_operator(jpeg_data.bytesize, :>=, 1000) |
34 | 33 | |
35 | 34 | count = 0 |
42 | 41 | |
43 | 42 | assert_equal 4000, img.width |
44 | 43 | assert_equal 3000, img.height |
45 | assert_operator(count, :>=, 10) | |
44 | assert_operator(count, :>=, 1000000) | |
46 | 45 | end |
47 | 46 | end |