From dd23ad7e8489d331da2b280b42326a4cb84fe89b Mon Sep 17 00:00:00 2001 From: nahi Date: Tue, 17 Feb 2004 14:28:34 +0000 Subject: * test/soap/marshal/test_marshal.rb, test/ruby/test_marshal.rb: do $: trick to share the testcase test/ruby/marshaltestlib.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_marshal.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/ruby') 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' -- cgit v1.2.3