From 7ac72e063c2a3ff9fc4488f8899958e83af44300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Mon, 30 Oct 2017 20:19:55 +0100 Subject: [PATCH] Fix uninitialized value messages in tests * tests/Test-https-*.px: Use correct variable in error message Reported-by: Jeffrey Walton --- tests/Test-https-badcerts.px | 2 +- tests/Test-https-clientcert.px | 2 +- tests/Test-https-crl.px | 2 +- tests/Test-https-pfs.px | 2 +- tests/Test-https-selfsigned.px | 2 +- tests/Test-https-tlsv1.px | 2 +- tests/Test-https-tlsv1x.px | 2 +- tests/Test-https-weboftrust.px | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Test-https-badcerts.px b/tests/Test-https-badcerts.px index 68cd1429..672cca48 100644 --- a/tests/Test-https-badcerts.px +++ b/tests/Test-https-badcerts.px @@ -43,7 +43,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts"; my $addr = gethostbyname($testhostname); unless ($addr) { - warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n"; + warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n"; exit 77; } unless (inet_ntoa($addr) =~ "127.0.0.1") diff --git a/tests/Test-https-clientcert.px b/tests/Test-https-clientcert.px index 36365a52..f0bc7396 100755 --- a/tests/Test-https-clientcert.px +++ b/tests/Test-https-clientcert.px @@ -42,7 +42,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts"; my $addr = gethostbyname($testhostname); unless ($addr) { - warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n"; + warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n"; exit 77; } unless (inet_ntoa($addr) =~ "127.0.0.1") diff --git a/tests/Test-https-crl.px b/tests/Test-https-crl.px index f5b2f3c9..9b048259 100755 --- a/tests/Test-https-crl.px +++ b/tests/Test-https-crl.px @@ -42,7 +42,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts"; my $addr = gethostbyname($testhostname); unless ($addr) { - warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n"; + warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n"; exit 77; } unless (inet_ntoa($addr) =~ "127.0.0.1") diff --git a/tests/Test-https-pfs.px b/tests/Test-https-pfs.px index 1fb1c0a3..627bd678 100755 --- a/tests/Test-https-pfs.px +++ b/tests/Test-https-pfs.px @@ -42,7 +42,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts"; my $addr = gethostbyname($testhostname); unless ($addr) { - warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n"; + warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n"; exit 77; } unless (inet_ntoa($addr) =~ "127.0.0.1") diff --git a/tests/Test-https-selfsigned.px b/tests/Test-https-selfsigned.px index 8d175390..1f48a2bf 100755 --- a/tests/Test-https-selfsigned.px +++ b/tests/Test-https-selfsigned.px @@ -42,7 +42,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts"; my $addr = gethostbyname($testhostname); unless ($addr) { - warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n"; + warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n"; exit 77; } unless (inet_ntoa($addr) =~ "127.0.0.1") diff --git a/tests/Test-https-tlsv1.px b/tests/Test-https-tlsv1.px index 32ff63ae..684cc6a4 100755 --- a/tests/Test-https-tlsv1.px +++ b/tests/Test-https-tlsv1.px @@ -42,7 +42,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts"; my $addr = gethostbyname($testhostname); unless ($addr) { - warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n"; + warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n"; exit 77; } unless (inet_ntoa($addr) =~ "127.0.0.1") diff --git a/tests/Test-https-tlsv1x.px b/tests/Test-https-tlsv1x.px index 080a9de6..37e6ca1d 100755 --- a/tests/Test-https-tlsv1x.px +++ b/tests/Test-https-tlsv1x.px @@ -43,7 +43,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts"; my $addr = gethostbyname($testhostname); unless ($addr) { - warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n"; + warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n"; exit 77; } unless (inet_ntoa($addr) =~ "127.0.0.1") diff --git a/tests/Test-https-weboftrust.px b/tests/Test-https-weboftrust.px index 55f936fa..04a5bdfd 100755 --- a/tests/Test-https-weboftrust.px +++ b/tests/Test-https-weboftrust.px @@ -42,7 +42,7 @@ $ENV{'HOSTALIASES'} = "$srcdir/certs/wgethosts"; my $addr = gethostbyname($testhostname); unless ($addr) { - warn "Failed to resolve $addr, using $srcdir/certs/wgethosts\n"; + warn "Failed to resolve $testhostname, using $srcdir/certs/wgethosts\n"; exit 77; } unless (inet_ntoa($addr) =~ "127.0.0.1")