Skip to content

Commit f6081b1

Browse files
committed
Hack to fix load macros test for PGplot macros.
PGplotmacros.pl overrides default WWplot objects, which if loaded will cause other tests to fail, so don't load this macro. PGplot helper macros are not meant to be loaded directly and are part of the PGplot.pl macro. This adds these macros to the borkenMacros hash to avoid being loaded during the test.
1 parent b55c744 commit f6081b1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

t/macros/load_macros.t

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,17 @@ my %baseMacros = (
3434
);
3535

3636
# PG_CAPAmacros.pl is not really broken, but it depends on files that are in the OPL and not in the PG repository.
37-
my %brokenMacros = ('answerDiscussion.pl' => 1, 'PG_CAPAmacros.pl' => 1);
37+
# PGplot helper macros Axes.pl, GD.pl, Tikz.pl, and Data.pl are not really broken, but shouldn't be loaded directly.
38+
# PGplotmacros.pl overrides some default WWplot objects. Loading this causes other test to fail.
39+
my %brokenMacros = (
40+
'answerDiscussion.pl' => 1,
41+
'PG_CAPAmacros.pl' => 1,
42+
'Axes.pl' => 1,
43+
'GD.pl' => 1,
44+
'Tikz.pl' => 1,
45+
'Data.pl' => 1,
46+
'PGplotmacros.pl' => 1,
47+
);
3848

3949
# Find all macro files inside the $ENV{PG_ROOT}/macros directory.
4050
my @macro_files;

0 commit comments

Comments
 (0)