Changeset 4275
- Timestamp:
- 12/30/06 07:04:06 (6 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/lib/test/test-scanner.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/lib/test/test-scanner.pl
r4234 r4275 48 48 plan tests => ($#scenarios + 1) * 3; 49 49 50 $test = Test::Cmd->new(prog => 'test-scanner', workdir => ''); 50 chomp(my $valgrind = `which valgrind 2>/dev/null`); 51 52 if ($valgrind) { 53 $test = Test::Cmd->new(prog => "$valgrind --tool=memcheck --show-reachable=yes --leak-check=full --quiet ./test-scanner", workdir => ''); 54 } else { 55 diag("Couldn't find valgrind(1), running tests without it..."); 56 $test = Test::Cmd->new(prog => "test-scanner", workdir => ''); 57 } 51 58 52 59 foreach $scenario (@scenarios) {
