equal
deleted
inserted
replaced
|
1 Fixes a sporadic test problem with ruby. |
|
2 See http://bugs.ruby-lang.org/issues/show/1714 |
|
3 |
|
4 The fix is from this revision, which does not appear in |
|
5 the latest ruby 1.8.7-p374: |
|
6 http://bugs.ruby-lang.org/projects/ruby-18/repository/revisions/24668 |
|
7 |
|
8 --- ruby-1.8.7-p374-orig/lib/test/unit/collector/dir.rb 2007-02-12 15:01:19.000000000 -0800 |
|
9 +++ ruby-1.8.7-p374/lib/test/unit/collector/dir.rb 2013-12-05 17:46:31.105788000 -0800 |
|
10 @@ -91,7 +91,7 @@ |
|
11 end |
|
12 find_test_cases(already_gathered).each{|t| add_suite(suites, t.suite)} |
|
13 ensure |
|
14 - $:.delete_at($:.rindex(dir)) if(dir) |
|
15 + $:.delete_at($:.index(dir)) if(dir) |
|
16 end |
|
17 |
|
18 def realdir(path) |