X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=tests%2FTest-nonexisting-quiet.px;h=f150da1b11f1bf1d295bcfa285fad71cf2a1726e;hb=4a08094db88011153adadbf995103770b20d2a31;hp=45f24390450bff7b76f42b31d5934ef7fdd63995;hpb=829f83bf5bce33e856971b55a8e00c3560da7b4b;p=wget diff --git a/tests/Test-nonexisting-quiet.px b/tests/Test-nonexisting-quiet.px index 45f24390..f150da1b 100755 --- a/tests/Test-nonexisting-quiet.px +++ b/tests/Test-nonexisting-quiet.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use strict; +use warnings; use HTTPTest; @@ -23,9 +24,9 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " --quiet http://localhost:8080/nonexistent"; +my $cmdline = $WgetTest::WGETPATH . " --quiet http://localhost:{{port}}/nonexistent"; -my $expected_error_code = 256; +my $expected_error_code = 8; my %expected_downloaded_files = ( ); @@ -33,9 +34,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-nonexisting-quiet", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, output => \%expected_downloaded_files); exit $the_test->run();