}
if (!defined($cpus) && -r "/proc/cpuinfo") {
# Smells like Linux or something else attempting bug for bug
- # compatibilty with the /proc paradigm.
+ # compatibility with the /proc paradigm.
my $tmp = qx(grep -c ^processor /proc/cpuinfo 2>/dev/null);
if ($? == 0 && $tmp > 0) {
$cpus = $tmp;
# some situations.
$ENV{'MALLOC_PERTURB_'} = '128' if !defined $ENV{'MALLOC_PERTURB_'};
+my $tap_verbosity = exists $ENV{'HARNESS_VERBOSE'} ? $ENV{'HARNESS_VERBOSE'} : 0;
+# Show test times by default, unless we have lowered verbosity.
+my $tap_timer = ($tap_verbosity >= 0) ? 1 : 0;
+# But also ensure HARNESS_TIMER is respected if it is set.
+$tap_timer = exists $ENV{'HARNESS_TIMER'} ? $ENV{'HARNESS_TIMER'} : $tap_timer;
+
my %tapargs =
- ( verbosity => $ENV{HARNESS_VERBOSE} ? 1 : 0,
+ ( verbosity => $tap_verbosity,
lib => [ $libdir ],
switches => '-w',
merge => 1,
- timer => $ENV{HARNESS_TIMER} ? 1 : 0,
+ timer => $tap_timer,
);
if ($jobs > 1) {