This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
suppress fancy display when in verbose mode (suggested by
authorGurusamy Sarathy <gsar@cpan.org>
Mon, 5 Jul 1999 05:31:19 +0000 (05:31 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Mon, 5 Jul 1999 05:31:19 +0000 (05:31 +0000)
Paul Johnson <pjcj@transeda.com>)

p4raw-id: //depot/perl@3583

lib/Test/Harness.pm

index 3cc3749..db3109a 100644 (file)
@@ -77,7 +77,8 @@ sub runtests {
        my $blank = (' ' x 77);
        my $leader = "$te" . '.' x (20 - length($te));
        my $ml = "";
-       $ml = "\r$blank\r$leader" if -t STDOUT and not $ENV{HARNESS_NOTTY};
+       $ml = "\r$blank\r$leader"
+           if -t STDOUT and not $ENV{HARNESS_NOTTY} and not $verbose;
        print $leader;
        my $fh = new FileHandle;
        $fh->open($test) or print "can't open $test. $!\n";
@@ -117,7 +118,7 @@ sub runtests {
                my $this = $next;
                if (/^not ok\s*(\d*)/){
                    $this = $1 if $1 > 0;
-                   print "${ml}NOK $this\n" if $ml;
+                   print "${ml}NOK $this" if $ml;
                    if (!$todo{$this}) {
                        push @failed, $this;
                    } else {