summaryrefslogtreecommitdiff
path: root/ruby/test/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/test/test_helper.rb')
-rw-r--r--ruby/test/test_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/ruby/test/test_helper.rb b/ruby/test/test_helper.rb
index 6a63489..4def861 100644
--- a/ruby/test/test_helper.rb
+++ b/ruby/test/test_helper.rb
@@ -1,3 +1,10 @@
require 'test/unit'
+begin
+require File.dirname(__FILE__) + '/../msgpack'
+rescue LoadError
require File.dirname(__FILE__) + '/../lib/msgpack'
+end
+if ENV["GC_STRESS"]
+ GC.stress = true
+end