From 203563a918c5682a4f03b174cd6b861c90747739 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 23 Oct 2008 10:21:01 +0000 Subject: [PATCH] clean up syntaxCheck messages slightly --- t/syntaxCheck.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/syntaxCheck.t b/t/syntaxCheck.t index 8f49dfc98..4ab5131a0 100644 --- a/t/syntaxCheck.t +++ b/t/syntaxCheck.t @@ -41,10 +41,11 @@ foreach my $library (@modules) { for my $script (@scripts) { my $cmd = "$^X -wcI'$wgLib' $script 2>&1"; my $output = `$cmd`; - is($?, 0, "$script compiles successfully"); + my $shortName = File::Spec->abs2rel($script, WebGUI::Test->root); + is($?, 0, "$shortName compiles successfully"); chomp $output; $output =~ s/^\Q$script\E (?:had compilation errors\.|syntax OK)$//m; - is($output, '', "$script compiles without warnings"); + is($output, '', "$shortName compiles without warnings"); } #----------------------------------------