summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-08-15 14:36:51 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-08-15 14:36:51 +0200
commitcfa78d42ac5bbfd6cd7e1b3a9f85b34adae02ecd (patch)
tree75ac345e7c15a50394cacfa332863f5f42e87bc3
parentae0a8327f0c3f4ee26c0aa006ad8b89ba62504cd (diff)
downloadffi-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.rb10
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