X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=tests%2FTest-O-nonexisting.px;h=c8df6d726ca2b1bec47d54e9d013259c828e06f1;hb=edc9055768fed952b30629a9e8fa38ef68761882;hp=676bd5f4e3ee41fdd147e1265c9b7ff88c2a0354;hpb=f0b4f352bfedd1ac5b639db801445261f19a73ff;p=wget diff --git a/tests/Test-O-nonexisting.px b/tests/Test-O-nonexisting.px index 676bd5f4..c8df6d72 100755 --- a/tests/Test-O-nonexisting.px +++ b/tests/Test-O-nonexisting.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 = "wget --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' => { @@ -35,12 +36,12 @@ my %expected_downloaded_files = ( ############################################################################### -my $the_test = HTTPTest->new (name => "Test4", +my $the_test = HTTPTest->new (name => "Test-O-nonexisting", input => \%urls, cmdline => $cmdline, errcode => $expected_error_code, output => \%expected_downloaded_files); -$the_test->run(); +exit $the_test->run(); # vim: et ts=4 sw=4