From cfa78d42ac5bbfd6cd7e1b3a9f85b34adae02ecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 15 Aug 2011 14:36:51 +0200 Subject: 1.8 doesn't create an OS thread for each new ruby Thread --- spec/eina_spec.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/spec/eina_spec.rb b/spec/eina_spec.rb index 296b941..9e1d8b6 100644 --- a/spec/eina_spec.rb +++ b/spec/eina_spec.rb @@ -19,9 +19,13 @@ describe "Efl::Eina #{Efl::Eina.version.full}" do # it "should be main thread" do Efl::Eina.main_loop_is.should be_true - Thread.new do - Efl::Eina.main_loop_is.should be_false - end.join + if RUBY_VERSION > "1.9.0" + Thread.new do + Efl::Eina.main_loop_is.should be_false + end.join + else + puts " no bother on 1.8 branch" + end end # it "should shutdown" do -- cgit v1.1-2-g2b99