From 6df78c9a94f778aef156927aee1deb23473e9226 Mon Sep 17 00:00:00 2001 From: Jaimos Skriletz Date: Tue, 28 Nov 2023 21:26:02 -0700 Subject: [PATCH] Fix load macros test for PGplot helper macros. These macros are not meant to be loaded directly and are part of the PGplot.pl macro. This adds them to the borkenMacros hash to avoid being loaded during the test. --- t/macros/load_macros.t | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/t/macros/load_macros.t b/t/macros/load_macros.t index 59d37ed799..4fca0f731a 100644 --- a/t/macros/load_macros.t +++ b/t/macros/load_macros.t @@ -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;