Changeset 13802 for trunk/UnitTestContrib/test/bin/TestRunner.pl
- Timestamp:
- 01/24/12 05:38:16 (4 months ago)
- File:
-
- 1 edited
-
trunk/UnitTestContrib/test/bin/TestRunner.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/UnitTestContrib/test/bin/TestRunner.pl
r13606 r13802 1 1 #!/usr/bin/perl -w 2 2 # See bottom of file for description 3 use strict; 4 use warnings; 5 require 5.006; 3 6 4 require 5.006;5 7 use FindBin; 6 8 use Cwd (); … … 21 23 22 24 BEGIN { 25 if ( not defined $ENV{FOSWIKI_ASSERTS} or $ENV{FOSWIKI_ASSERTS} eq 'soft' ) { 26 print 27 "exporting FOSWIKI_ASSERTS=1 for extra checking; disable by exporting FOSWIKI_ASSERTS=0\n"; 28 $ENV{FOSWIKI_ASSERTS} = 1; 29 } 30 23 31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 24 32 … … 47 55 } 48 56 49 use strict; 50 use Foswiki; # If you take this out then TestRunner.pl will fail on IndigoPerl 57 # Item11466: PH commented the below & added require statements where necessary, 58 # to avoid compiling Foswiki.pm before FOSWIKI_ASSERTS have been set 59 #use Foswiki; # If you take this out then TestRunner.pl will fail on IndigoPerl 51 60 use Unit::TestRunner; 52 61 … … 79 88 print STDERR "Options: ", join( ' ', keys %options ), "\n"; 80 89 81 if ( not defined $ENV{FOSWIKI_ASSERTS} or $ENV{FOSWIKI_ASSERTS} eq 'soft' ) {82 print83 "exporting FOSWIKI_ASSERTS=1 for extra checking; disable by exporting FOSWIKI_ASSERTS=0\n";84 $ENV{FOSWIKI_ASSERTS} = 1;85 }86 87 90 if ( $ENV{FOSWIKI_ASSERTS} ) { 88 91 print "Assert checking on $ENV{FOSWIKI_ASSERTS}\n"; … … 94 97 if ( $options{-clean} ) { 95 98 require File::Path; 99 require Foswiki; 96 100 my $rmDir = $Foswiki::cfg{DataDir}; 97 101 opendir( my $dataDir, $rmDir ) or die "Can't open directory $rmDir: $!"; … … 114 118 115 119 if ( not $options{-worker} ) { 120 require Foswiki; 116 121 testForFiles( $Foswiki::cfg{DataDir}, '/Temp*' ); 117 122 testForFiles( $Foswiki::cfg{PubDir}, '/Temp*' );
Note: See TracChangeset
for help on using the changeset viewer.
