diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-10-25 12:35:29 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-10-25 12:35:29 +0000 |
commit | 28ffa55a57d1b19a5f4e472983f2acf8c7c075ab (patch) | |
tree | a274c60a67b012ecf1ba668c9177e718de710442 /t/TEST | |
parent | efbf22baf4d267e11bf6ce4ac25a6b2a2c148cc6 (diff) | |
download | perl-28ffa55a57d1b19a5f4e472983f2acf8c7c075ab.tar.gz |
t/TEST should require Time::HiRes only when it uses it.
This fixes minitest.
p4raw-id: //depot/perl@25847
Diffstat (limited to 't/TEST')
-rwxr-xr-x | t/TEST | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -69,7 +69,7 @@ $ENV{EMXSHELL} = 'sh'; # For OS/2 # Roll your own File::Find! use TestInit; use File::Spec; -use Time::HiRes; +if ($show_elapsed_time) { require Time::HiRes } my $curdir = File::Spec->curdir; my $updir = File::Spec->updir; @@ -263,7 +263,7 @@ EOT my $totmax = 0; while (my $test = shift @tests) { - my $test_start_time = Time::HiRes::time(); + my $test_start_time = $show_elapsed_time ? Time::HiRes::time() : 0; if ( $::infinite{$test} && $type eq 'compile' ) { print STDERR "$test creates infinite loop! Skipping.\n"; |