summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2021-07-23 20:05:47 +0200
committerMarc Hoersken <info@marc-hoersken.de>2021-07-25 19:59:14 +0200
commit893f39c596d9cea06d94de5ea0d80de4d6035d07 (patch)
tree993c353d9b7f3f96958df5718e346c1ebd89fc5f
parent3a280a19ccd069aea4c0745eb9e26f281bdca59c (diff)
downloadcurl-893f39c596d9cea06d94de5ea0d80de4d6035d07.tar.gz
tests/runtests.pl: cleanup copy&paste mistakes and unused code
Reviewed-by: Jay Satiro Part of #7481
-rwxr-xr-xtests/runtests.pl11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 9afc97df0..30ae0b349 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -1691,7 +1691,6 @@ sub runhttpsserver {
}
my $pid2;
- my $pid3;
my $httpspid;
my $port = 24512; # start attempt
for (1 .. 10) {
@@ -1862,7 +1861,6 @@ sub runpingpongserver {
$doesntrun{$pidfile} = 1;
return (0,0);
}
-
$pid2 = $pid3;
logmsg "RUN: $srvrname server is PID $ftppid port $port\n" if($verbose);
@@ -1957,10 +1955,9 @@ sub runftpsserver {
$flags .= "--stunnel \"$stunnel\" --srcdir \"$srcdir\" ";
$flags .= "--connect $FTPPORT";
- my $port = 26713;
- my $pid2;
- my $pid3;
my $ftpspid;
+ my $pid2;
+ my $port = 26713;
for (1 .. 10) {
$port += int(rand(700));
my $options = "$flags --accept $port";
@@ -5158,7 +5155,7 @@ sub startservers {
}
logmsg sprintf ("* pid SMB => %d %d\n", $pid, $pid2)
if($verbose);
- $run{'dict'}="$pid $pid2";
+ $run{'smb'}="$pid $pid2";
}
}
elsif($what eq "telnet") {
@@ -5170,7 +5167,7 @@ sub startservers {
}
logmsg sprintf ("* pid neg TELNET => %d %d\n", $pid, $pid2)
if($verbose);
- $run{'dict'}="$pid $pid2";
+ $run{'telnet'}="$pid $pid2";
}
}
elsif($what eq "none") {