Commit 1339fc04 authored by jake%acutex.net's avatar jake%acutex.net

Bug 106424 - We weren't going orange on warnings such as "used only once". This…

Bug 106424 - We weren't going orange on warnings such as "used only once". This script now properly outputs the --WARNING and fails on such a condition.
parent 3d93fe76
...@@ -45,7 +45,7 @@ use strict; ...@@ -45,7 +45,7 @@ use strict;
# First now we test the scripts # First now we test the scripts
my @testitems = @Support::Files::testitems; my @testitems = @Support::Files::testitems;
my %warnings; #my %warnings;
my $verbose = $::ENV{TEST_VERBOSE}; my $verbose = $::ENV{TEST_VERBOSE};
my $perlapp = $^X; my $perlapp = $^X;
...@@ -63,8 +63,8 @@ foreach my $file (@testitems) { ...@@ -63,8 +63,8 @@ foreach my $file (@testitems) {
my $loginfo=`$command`; my $loginfo=`$command`;
#print '@@'.$loginfo.'##'; #print '@@'.$loginfo.'##';
if ($loginfo =~ /syntax ok$/im) { if ($loginfo =~ /syntax ok$/im) {
$warnings{$_} = 1 foreach ($loginfo =~ /\((W.*?)\)/mg); # $warnings{$_} = 1 foreach ($loginfo =~ /\((W.*?)\)/mg);
if ($1) { if ($loginfo ne "$file syntax OK\n") {
if ($verbose) { print STDERR $loginfo; } if ($verbose) { print STDERR $loginfo; }
ok(0,$file."--WARNING"); ok(0,$file."--WARNING");
} else { } else {
...@@ -84,3 +84,9 @@ use_ok('RelationSet'); # 55 ...@@ -84,3 +84,9 @@ use_ok('RelationSet'); # 55
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment