summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-22 03:53:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-22 03:53:41 +0000
commitf136a3225e5fdd37961b8ed0e29c96e4a40f0d64 (patch)
treed33dfde2fb79afba368732768bf4f6bdf0e90480 /test/ruby
parent4650c38d8b157667c6e9532174297f9e72bc4c34 (diff)
* lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
ignore tests which raised LoadError. * test/drb/drbtest.rb, test/ruby/test_beginendblock.rb, test/ruby/test_system.rb: avoid requiring same file twice. * test/drb/test_drbssl.rb, test/drb/test_drbunix.rb: should not use ARGV unless invoked directly. do not create test cases unless required libraries are available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_beginendblock.rb3
-rw-r--r--test/ruby/test_system.rb3
2 files changed, 4 insertions, 2 deletions
diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb
index deacc782b7..e8d25a102d 100644
--- a/test/ruby/test_beginendblock.rb
+++ b/test/ruby/test_beginendblock.rb
@@ -1,6 +1,7 @@
require 'test/unit'
require 'tempfile'
-require "#{File.dirname(File.expand_path(__FILE__))}/envutil"
+$:.unshift(File.dirname(File.expand_path(__FILE__)))
+require 'envutil'
class TestBeginEndBlock < Test::Unit::TestCase
DIR = File.dirname(File.expand_path(__FILE__))
diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb
index da4deb5a04..ed7f8b8fd1 100644
--- a/test/ruby/test_system.rb
+++ b/test/ruby/test_system.rb
@@ -1,5 +1,6 @@
require 'test/unit'
-require "#{File.dirname(File.expand_path(__FILE__))}/envutil"
+$:.unshift(File.dirname(File.expand_path(__FILE__)))
+require 'envutil'
$KCODE = 'none'