fix portrait.t

The test hung because it used the following:

*ApplyRules = *OldTocApplyRules;
*RunMyRules = *RunMyRulesTocOld;

But recent changes in the modules make it necessary to use the "new"
style:

*ApplyRules = \&OldTocApplyRules;
*RunMyRules = \&RunMyRulesTocOld;
This commit is contained in:
Alex Schroeder
2015-04-12 18:54:23 +02:00
parent 40ec24349a
commit 79da6c19aa

View File

@@ -45,8 +45,8 @@ test_page(update_page('headers', "[new]foo\n== one ==\ntext\n== two ==\ntext\n==
remove_module('toc.pl');
# The next two are necessary so that toc.pl can be reloaded safely later!
*ApplyRules = *OldTocApplyRules;
*RunMyRules = *RunMyRulesTocOld;
*ApplyRules = \&OldTocApplyRules;
*RunMyRules = \&RunMyRulesTocOld;
remove_rule(\&TocRule);
remove_module('usemod.pl');
remove_rule(\&UsemodRule);