X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-O-nonexisting.px;h=8fde7c8fa59f481fec0369f0aaea482751b12dba;hp=347dc38e068617fdf4701d8aac0f98d2750a92aa;hb=320cfdcb658e8d6556ae9dfd902c2db1db866a6b;hpb=caae3b70f46bd519857b595f7f06ea0179551336 diff --git a/tests/Test-O-nonexisting.px b/tests/Test-O-nonexisting.px index 347dc38e..8fde7c8f 100755 --- a/tests/Test-O-nonexisting.px +++ b/tests/Test-O-nonexisting.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; use HTTPTest; @@ -23,9 +24,9 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " --quiet -O out http://localhost:8080/nonexistent"; +my $cmdline = $WgetTest::WGETPATH . " --quiet -O out http://localhost:{{port}}/nonexistent"; -my $expected_error_code = 256; +my $expected_error_code = 8; my %expected_downloaded_files = ( 'out' => { @@ -36,9 +37,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-O-nonexisting", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, output => \%expected_downloaded_files); exit $the_test->run();