Skip to content

Commit

Permalink
Hack to fix load macros test for PGplot macros.
Browse files Browse the repository at this point in the history
  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.
  • Loading branch information
somiaj committed Nov 29, 2023
1 parent b55c744 commit f6081b1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion t/macros/load_macros.t
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,17 @@ my %baseMacros = (
);

# PG_CAPAmacros.pl is not really broken, but it depends on files that are in the OPL and not in the PG repository.
my %brokenMacros = ('answerDiscussion.pl' => 1, 'PG_CAPAmacros.pl' => 1);
# PGplot helper macros Axes.pl, GD.pl, Tikz.pl, and Data.pl are not really broken, but shouldn't be loaded directly.
# PGplotmacros.pl overrides some default WWplot objects. Loading this causes other test to fail.
my %brokenMacros = (
'answerDiscussion.pl' => 1,
'PG_CAPAmacros.pl' => 1,
'Axes.pl' => 1,
'GD.pl' => 1,
'Tikz.pl' => 1,
'Data.pl' => 1,
'PGplotmacros.pl' => 1,
);

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

0 comments on commit f6081b1

Please sign in to comment.