From: jocuri%softhome.net <> Date: Sat, 28 Aug 2004 15:17:21 +0000 (+0000) Subject: Patch for bug 216572: 002goodperl.t shouldn't add an extra test for every additional... X-Git-Tag: bugzilla-2.18rc3~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5068892c6c3346bc665dde8186aac747eea8db18;p=thirdparty%2Fbugzilla.git Patch for bug 216572: 002goodperl.t shouldn't add an extra test for every additional Throw*Error violation in the same file; patch by Marc Schumann ; r=kiko, a=justdave. --- diff --git a/t/002goodperl.t b/t/002goodperl.t index 92a01fc2d1..676cd17763 100644 --- a/t/002goodperl.t +++ b/t/002goodperl.t @@ -107,7 +107,7 @@ foreach my $file (@testitems) { my $lineno = 0; my $error = 0; - while (my $file_line = ) { + while (!$error && (my $file_line = )) { $lineno++; if ($file_line =~ /Throw.*Error\("(.*?)"/) { if ($1 =~ /\s/) {