From 79da6c19aa65223c028fcbd78fa4c55829201409 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Sun, 12 Apr 2015 18:54:23 +0200 Subject: [PATCH] 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; --- t/portrait.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/portrait.t b/t/portrait.t index fb731cc5..3be3d982 100644 --- a/t/portrait.t +++ b/t/portrait.t @@ -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);