tests: fix perl warnings in http2-server, http3-server

AM libressl heimdal:
```
Global symbol "$verbose" requires explicit package name (did you forget to declare "my $verbose"?) at tests/http2-server.pl line 52.
Global symbol "$certfile" requires explicit package name (did you forget to declare "my $certfile"?) at tests/http2-server.pl line 109.
Global symbol "$keyfile" requires explicit package name (did you forget to declare "my $keyfile"?) at tests/http2-server.pl line 110.
Execution of tests/http2-server.pl aborted due to compilation errors.
[...]
```
Ref: https://github.com/curl/curl/actions/runs/16622030370/job/47028537336?pr=18099#step:39:3148

Follow-up to 2ec54556d4 #17877

Closes #18100
This commit is contained in:
Viktor Szakats 2025-07-30 14:11:05 +02:00
parent 801800aca2
commit 1140c8bc04
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 6 additions and 4 deletions

View file

@ -33,6 +33,7 @@ use Cwd 'abs_path';
use File::Basename;
use File::Spec;
my $verbose = 0; # set to 1 for debugging
my $logdir = "log";
my $pidfile = "$logdir/nghttpx.pid";
my $logfile = "$logdir/http2.log";
@ -106,8 +107,8 @@ while(@ARGV) {
shift @ARGV;
}
$certfile = abs_path("certs/$cert.pem");
$keyfile = abs_path("certs/$cert.key");
my $certfile = abs_path("certs/$cert.pem");
my $keyfile = abs_path("certs/$cert.key");
my $cmdline="$nghttpx --backend=$connect ".
"--backend-keep-alive-timeout=500ms ".

View file

@ -34,6 +34,7 @@ use Cwd 'abs_path';
use File::Basename;
use File::Spec;
my $verbose = 0; # set to 1 for debugging
my $logdir = "log";
my $pidfile = "$logdir/nghttpx.pid";
my $logfile = "$logdir/http3.log";
@ -106,8 +107,8 @@ while(@ARGV) {
shift @ARGV;
}
$certfile = abs_path("certs/$cert.pem");
$keyfile = abs_path("certs/$cert.key");
my $certfile = abs_path("certs/$cert.pem");
my $keyfile = abs_path("certs/$cert.key");
my $cmdline="$nghttpx --http2-proxy --backend=$connect ".
"--backend-keep-alive-timeout=500ms ".