diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-15 14:36:51 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-15 14:36:51 +0200 |
commit | cfa78d42ac5bbfd6cd7e1b3a9f85b34adae02ecd (patch) | |
tree | 75ac345e7c15a50394cacfa332863f5f42e87bc3 | |
parent | ae0a8327f0c3f4ee26c0aa006ad8b89ba62504cd (diff) | |
download | ffi-efl-cfa78d42ac5bbfd6cd7e1b3a9f85b34adae02ecd.zip ffi-efl-cfa78d42ac5bbfd6cd7e1b3a9f85b34adae02ecd.tar.gz |
1.8 doesn't create an OS thread for each new ruby Thread
-rw-r--r-- | spec/eina_spec.rb | 10 |
1 files 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 |