From: jake%acutex.net <> Date: Sun, 1 Mar 2009 04:03:08 +0000 (+0000) Subject: Bug 103664 - Tests should "use strict;" and not contain any tabs. We should also... X-Git-Tag: bugzilla-3.3.4~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95afe7247cd9ae3fad2a783056a5484d5e9ae947;p=thirdparty%2Fbugzilla.git Bug 103664 - Tests should "use strict;" and not contain any tabs. We should also use the TEST_VERBOSE environment variable instead of VERBOSE. Patch by David D. Kilzer Additional edits by myself to add the emacs mode line. Also, the change to runtests.sh was done by me. --- diff --git a/t/005whitespace.t b/t/005whitespace.t index fef0bf72ce..66b2af5d61 100644 --- a/t/005whitespace.t +++ b/t/005whitespace.t @@ -21,7 +21,7 @@ # ################# -#Bugzilla Test 4# +#Bugzilla Test 5# #####no_tabs##### BEGIN { use lib "t/"; } @@ -29,8 +29,10 @@ BEGIN { use Support::Files; } BEGIN { $tests = @Support::Files::testitems; } BEGIN { use Test::More tests => $tests; } +use strict; + my @testitems = @Support::Files::testitems; -my $verbose = $::ENV{VERBOSE}; +my $verbose = $::ENV{TEST_VERBOSE}; foreach my $file (@testitems) { open (FILE, "$file");