diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_marshal.rb | 9 | ||||
-rw-r--r-- | test/soap/marshal/test_marshal.rb | 10 |
2 files changed, 16 insertions, 3 deletions
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index 3bd2cc08f1..2008e3f36a 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -1,5 +1,12 @@ require 'test/unit' -require File.join(File.dirname(File.expand_path(__FILE__)), 'marshaltestlib') +dir = File.dirname(File.expand_path(__FILE__)) +orgpath = $:.dup +begin + $:.push(dir) + require 'marshaltestlib' +ensure + $:.replace(orgpath) +end $KCODE = 'none' diff --git a/test/soap/marshal/test_marshal.rb b/test/soap/marshal/test_marshal.rb index 846619523c..5cc30a2b5d 100644 --- a/test/soap/marshal/test_marshal.rb +++ b/test/soap/marshal/test_marshal.rb @@ -1,7 +1,13 @@ require 'test/unit' require 'soap/marshal' -require File.join(File.dirname(File.expand_path(__FILE__)), '../../ruby/marshaltestlib') - +dir = File.join(File.dirname(File.expand_path(__FILE__)), '../../ruby') +orgpath = $:.dup +begin + $:.push(dir) + require 'marshaltestlib' +ensure + $:.replace(orgpath) +end module SOAP module Marshal |