Issue #1714 has been updated by Kazuhiro NISHIYAMA.


This can reproduce: make test-all TESTS="-v test_timeout wsdl/raa/test_raa"

Bug is $:.rindex(dir) in test/unit/collector/dir.rb.

test/unit/collector/dir.rb:
        def collect_file(name, suites, already_gathered)
          dir = @file.dirname(@file.expand_path(name, @base))
          $:.unshift(dir)
          if(@req)
            @req.require(name)
          else
            require(name)
          end
          find_test_cases(already_gathered).each{|t| add_suite(suites, t.suite)}
        ensure
          $:.delete_at($:.rindex(dir)) if(dir)
        end

At first, "/home/kazu/wc/ruby/branches/ruby_1_8/test" ($srcdir/test) is included at $:.last.
After collect_file with name includes filename only, $srcdir/test is included at $:.first and deleted from $:.last.
Because $:.rindex(dir) returns index of $:.last instead of $:.first.

----------------------------------------
http://redmine.ruby-lang.org/issues/show/1714

----------------------------------------
http://redmine.ruby-lang.org