From c84c8b0dc6f1076bb93315cfeaa7b8ca5c78f0ed Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 7 Aug 2008 22:55:17 +0000 Subject: [PATCH] skip Perl::Critic tests if unable to load modules --- t/i18n/critic_labels.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/i18n/critic_labels.t b/t/i18n/critic_labels.t index 39c7fa9fb..6615e5ad0 100644 --- a/t/i18n/critic_labels.t +++ b/t/i18n/critic_labels.t @@ -25,6 +25,9 @@ use WebGUI::Session; ##Delay this so that the skip_all can work the way it should eval { require Test::Perl::Critic; }; +if ($@) { + plan skip_all => "Test::Perl::Critic not installed"; +} #---------------------------------------------------------------------------- # Init