Changeset 6758 for inc

Show
Ignore:
Timestamp:
09/06/05 00:41:05 (3 years ago)
Author:
Darren_Duncan
Message:

converted tabs to 8 spaces each in inc/Test/Harness.pm and inc/Test/Harness/Straps.pm

Location:
inc/Test
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • inc/Test/Harness.pm

    r2647 r6758  
    822822    push @result, "\tFailed $failed/$max tests, "; 
    823823    if ($max) { 
    824         push @result, sprintf("%.2f",100*(1-$failed/$max)), "% okay"; 
     824        push @result, sprintf("%.2f",100*(1-$failed/$max)), "% okay"; 
    825825    } else { 
    826         push @result, "?% okay"; 
     826        push @result, "?% okay"; 
    827827    } 
    828828    my $ender = 's' x ($skipped > 1); 
    829829    if ($skipped) { 
    830830        my $good = $max - $failed - $skipped; 
    831         my $skipmsg = " (less $skipped skipped test$ender: $good okay, "; 
    832         if ($max) { 
    833             my $goodper = sprintf("%.2f",100*($good/$max)); 
    834             $skipmsg .= "$goodper%)"; 
    835         } else { 
    836             $skipmsg .= "?%)"; 
    837         } 
    838         push @result, $skipmsg; 
     831        my $skipmsg = " (less $skipped skipped test$ender: $good okay, "; 
     832        if ($max) { 
     833            my $goodper = sprintf("%.2f",100*($good/$max)); 
     834            $skipmsg .= "$goodper%)"; 
     835        } else { 
     836            $skipmsg .= "?%)"; 
     837        } 
     838        push @result, $skipmsg; 
    839839    } 
    840840    push @result, "\n"; 
  • inc/Test/Harness/Straps.pm

    r469 r6758  
    387387    # MacPerl's putenv is broken, so it will not see PERL5LIB, tainted or not. 
    388388    if ( $taint || $self->{_is_macos} ) { 
    389         my @inc = $self->_filtered_INC; 
    390         push @derived_switches, map { "-I$_" } @inc; 
     389        my @inc = $self->_filtered_INC; 
     390        push @derived_switches, map { "-I$_" } @inc; 
    391391    } 
    392392 
     
    395395    # it if it's already quoted. 
    396396    for ( @derived_switches ) { 
    397         $_ = qq["$_"] if ((/\s/ || $self->{_is_vms}) && !/^".*"$/ ); 
     397        $_ = qq["$_"] if ((/\s/ || $self->{_is_vms}) && !/^".*"$/ ); 
    398398    } 
    399399    return join( " ", @existing_switches, @derived_switches ); 
     
    415415    my @switches; 
    416416    for ( @_ ) { 
    417         my $switch = $_; 
    418         next unless defined $switch; 
    419         $switch =~ s/^\s+//; 
    420         $switch =~ s/\s+$//; 
    421         push( @switches, $switch ) if $switch ne ""; 
     417        my $switch = $_; 
     418        next unless defined $switch; 
     419        $switch =~ s/^\s+//; 
     420        $switch =~ s/\s+$//; 
     421        push( @switches, $switch ) if $switch ne ""; 
    422422    } 
    423423 
     
    456456 
    457457    if( $self->{_is_vms} ) { 
    458         # VMS has a 255-byte limit on the length of %ENV entries, so 
    459         # toss the ones that involve perl_root, the install location 
     458        # VMS has a 255-byte limit on the length of %ENV entries, so 
     459        # toss the ones that involve perl_root, the install location 
    460460        @inc = grep !/perl_root/i, @inc; 
    461461 
    462462    } elsif ( $self->{_is_win32} ) { 
    463         # Lose any trailing backslashes in the Win32 paths 
    464         s/[\\\/+]$// foreach @inc; 
     463        # Lose any trailing backslashes in the Win32 paths 
     464        s/[\\\/+]$// foreach @inc; 
    465465    } 
    466466