Skip to content

Commit 9405d86

Browse files
ko1aycabta
authored andcommitted
fix reset order.
* lib/rdoc/test_case.rb (setup): call `RDoc::Markup::PreProcess.reset` at the end of `setup` method. `RDoc::RDoc.new` requires `rdoc/generator/darkfish` and requires `rdoc/tom_doc.rb` at last. It add post_proecssor (at `add_post_processor`) and it fails `TestRDocMarkupPreProcess#test_class_post_process`. This issue occured only with sorted tests by alphabetical order. `make test-all TESTS='rdoc/test_rdoc_markup_pre_process.rb --test-order=alpha`) We can observe this failure with parallel test only a few times. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 14c7f85 commit 9405d86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rdoc/test_case.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ def setup
4141

4242
@RM = RDoc::Markup
4343

44-
RDoc::Markup::PreProcess.reset
45-
4644
@pwd = Dir.pwd
4745

4846
@store = RDoc::Store.new
@@ -55,6 +53,8 @@ def setup
5553
def g.class_dir() end
5654
def g.file_dir() end
5755
@rdoc.generator = g
56+
57+
RDoc::Markup::PreProcess.reset
5858
end
5959

6060
##

0 commit comments

Comments
 (0)