From fb112a8c4debb4220eaa5a75fbb10afb39672b20 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 31 Dec 2017 00:06:34 +0000 Subject: 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 --- lib/rdoc/test_case.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/rdoc/test_case.rb b/lib/rdoc/test_case.rb index 22d3f14219..5f38870324 100644 --- a/lib/rdoc/test_case.rb +++ b/lib/rdoc/test_case.rb @@ -41,8 +41,6 @@ class RDoc::TestCase < MiniTest::Unit::TestCase @RM = RDoc::Markup - RDoc::Markup::PreProcess.reset - @pwd = Dir.pwd @store = RDoc::Store.new @@ -55,6 +53,8 @@ class RDoc::TestCase < MiniTest::Unit::TestCase def g.class_dir() end def g.file_dir() end @rdoc.generator = g + + RDoc::Markup::PreProcess.reset end ## -- cgit v1.2.3