Codebase list ruby-fxruby / 9efcc3f
Remove sleep in GVL test, to better trigger errors in the GVL wrapping. Lars Kanis 8 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1616 count = 0
1717 th = Thread.new do
1818 loop do
19 sleep 0.001
2019 count += 1
2120 end
2221 end
2928 outfile.takeBuffer
3029 end
3130
32 assert_operator(count, :>=, 10)
31 assert_operator(count, :>=, 1000000)
3332 assert_operator(jpeg_data.bytesize, :>=, 1000)
3433
3534 count = 0
4241
4342 assert_equal 4000, img.width
4443 assert_equal 3000, img.height
45 assert_operator(count, :>=, 10)
44 assert_operator(count, :>=, 1000000)
4645 end
4746 end