1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

minor cleanup

This commit is contained in:
Daniel Stenberg 2003-08-06 23:10:36 +00:00
parent b201db5cec
commit 18975d44a6

View File

@ -669,18 +669,9 @@ sub singletest {
# make some nice replace operations # make some nice replace operations
$cmd =~ s/\n//g; # no newlines please $cmd =~ s/\n//g; # no newlines please
# substitute variables in the command line
subVariables \$cmd; subVariables \$cmd;
# $cmd =~ s/%HOSTIP/$HOSTIP/g;
# $cmd =~ s/%HOSTPORT/$HOSTPORT/g;
# $cmd =~ s/%HTTPSPORT/$HTTPSPORT/g;
# $cmd =~ s/%FTPPORT/$FTPPORT/g;
# $cmd =~ s/%FTPSPORT/$FTPSPORT/g;
# $cmd =~ s/%SRCDIR/$srcdir/g;
# $cmd =~ s/%PWD/$pwd/g;
#$cmd =~ s/%HOSTNAME/$HOSTNAME/g;
if($curl_debug) { if($curl_debug) {
unlink($memdump); unlink($memdump);
} }
@ -709,10 +700,8 @@ sub singletest {
my $out=""; my $out="";
if($cmdhash{'option'} eq "no-output") { if($cmdhash{'option'} !~ /no-output/) {
#print "*** We don't slap on --output\n"; #We may slap on --output!
}
else {
if (!@validstdout) { if (!@validstdout) {
$out=" --output $CURLOUT "; $out=" --output $CURLOUT ";
} }
@ -746,7 +735,7 @@ sub singletest {
$DBGCURL=$CMDLINE; $DBGCURL=$CMDLINE;
} }
$CMDLINE .= "$cmdargs >$STDOUT 2>$STDERR"; $CMDLINE .= "$cmdargs >>$STDOUT 2>>$STDERR";
if($verbose) { if($verbose) {
print "$CMDLINE\n"; print "$CMDLINE\n";