From 9efcc3f36ed6746f9684db38e6dc0a7305bdac0f Mon Sep 17 00:00:00 2001 From: Lars Kanis <lars@greiz-reinsdorf.de> Date: Sat, 13 Jun 2015 08:16:03 +0200 Subject: [PATCH] Remove sleep in GVL test, to better trigger errors in the GVL wrapping. --- test/TC_FXJPGImage.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/TC_FXJPGImage.rb b/test/TC_FXJPGImage.rb index 6224a0b..5d4cee4 100644 --- a/test/TC_FXJPGImage.rb +++ b/test/TC_FXJPGImage.rb @@ -17,7 +17,6 @@ class TC_FXJPGImage < Fox::TestCase count = 0 th = Thread.new do loop do - sleep 0.001 count += 1 end end @@ -30,7 +29,7 @@ class TC_FXJPGImage < Fox::TestCase outfile.takeBuffer end - assert_operator(count, :>=, 10) + assert_operator(count, :>=, 1000000) assert_operator(jpeg_data.bytesize, :>=, 1000) count = 0 @@ -43,6 +42,6 @@ class TC_FXJPGImage < Fox::TestCase assert_equal 4000, img.width assert_equal 3000, img.height - assert_operator(count, :>=, 10) + assert_operator(count, :>=, 1000000) end end -- GitLab