Changeset 2119 for Swishetest/trunk
- Timestamp:
- 04/14/08 13:18:54 (6 months ago)
- Files:
-
- Swishetest/trunk/t/025-valgrind.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Swishetest/trunk/t/025-valgrind.t
r2091 r2119 26 26 27 27 my $numtests = scalar(@docs); 28 if ($ENV{TEST_VALGRIND}) { 28 my $valgrind = mywhich( "valgrind" ); 29 if ($ENV{TEST_VALGRIND} && $valgrind) { 29 30 plan tests => $numtests; 30 31 } else { 31 plan skip_all => "not running valgrind test, setTEST_VALGRIND=1 to enable";32 plan skip_all => "not running valgrind test, install valgrind and set env TEST_VALGRIND=1 to enable"; 32 33 } 33 34 34 my $valgrind = mywhich( "valgrind" );35 unless( $valgrind ) {36 plan tests => 1;37 ok( 1, "skipping, valgrind not found" );38 exit(0);39 }40 35 for my $doc (@docs) { 41 36 #my $valgrind_options = "--show-below-main=yes --leak-check=full --show-reachable=yes -v";
