mirror of
https://github.com/mirror/wget.git
synced 2025-03-26 12:06:06 +08:00
Fix uninitialized value messages in tests
* tests/Test-https-*.px: Use correct variable in error message Reported-by: Jeffrey Walton
This commit is contained in:
parent
95891cbba3
commit
7ac72e063c
@ -43,7 +43,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts";
|
|||||||
my $addr = gethostbyname($testhostname);
|
my $addr = gethostbyname($testhostname);
|
||||||
unless ($addr)
|
unless ($addr)
|
||||||
{
|
{
|
||||||
warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n";
|
warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n";
|
||||||
exit 77;
|
exit 77;
|
||||||
}
|
}
|
||||||
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
||||||
|
@ -42,7 +42,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts";
|
|||||||
my $addr = gethostbyname($testhostname);
|
my $addr = gethostbyname($testhostname);
|
||||||
unless ($addr)
|
unless ($addr)
|
||||||
{
|
{
|
||||||
warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n";
|
warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n";
|
||||||
exit 77;
|
exit 77;
|
||||||
}
|
}
|
||||||
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
||||||
|
@ -42,7 +42,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts";
|
|||||||
my $addr = gethostbyname($testhostname);
|
my $addr = gethostbyname($testhostname);
|
||||||
unless ($addr)
|
unless ($addr)
|
||||||
{
|
{
|
||||||
warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n";
|
warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n";
|
||||||
exit 77;
|
exit 77;
|
||||||
}
|
}
|
||||||
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
||||||
|
@ -42,7 +42,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts";
|
|||||||
my $addr = gethostbyname($testhostname);
|
my $addr = gethostbyname($testhostname);
|
||||||
unless ($addr)
|
unless ($addr)
|
||||||
{
|
{
|
||||||
warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n";
|
warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n";
|
||||||
exit 77;
|
exit 77;
|
||||||
}
|
}
|
||||||
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
||||||
|
@ -42,7 +42,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts";
|
|||||||
my $addr = gethostbyname($testhostname);
|
my $addr = gethostbyname($testhostname);
|
||||||
unless ($addr)
|
unless ($addr)
|
||||||
{
|
{
|
||||||
warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n";
|
warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n";
|
||||||
exit 77;
|
exit 77;
|
||||||
}
|
}
|
||||||
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
||||||
|
@ -42,7 +42,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts";
|
|||||||
my $addr = gethostbyname($testhostname);
|
my $addr = gethostbyname($testhostname);
|
||||||
unless ($addr)
|
unless ($addr)
|
||||||
{
|
{
|
||||||
warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n";
|
warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n";
|
||||||
exit 77;
|
exit 77;
|
||||||
}
|
}
|
||||||
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
||||||
|
@ -43,7 +43,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts";
|
|||||||
my $addr = gethostbyname($testhostname);
|
my $addr = gethostbyname($testhostname);
|
||||||
unless ($addr)
|
unless ($addr)
|
||||||
{
|
{
|
||||||
warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n";
|
warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n";
|
||||||
exit 77;
|
exit 77;
|
||||||
}
|
}
|
||||||
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
||||||
|
@ -42,7 +42,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts";
|
|||||||
my $addr = gethostbyname($testhostname);
|
my $addr = gethostbyname($testhostname);
|
||||||
unless ($addr)
|
unless ($addr)
|
||||||
{
|
{
|
||||||
warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n";
|
warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n";
|
||||||
exit 77;
|
exit 77;
|
||||||
}
|
}
|
||||||
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
unless (inet_ntoa($addr) =~ "127.0.0.1")
|
||||||
|
Loading…
Reference in New Issue
Block a user