X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-nonexisting-quiet.px;h=62ee24167bcf4a1be4294c336d4e48c02c9230a0;hp=97ee275e84122a089d4a35c256c4964df187a3c6;hb=8c2fd06ba80b5312b4540859d452664450ec054f;hpb=f0b4f352bfedd1ac5b639db801445261f19a73ff diff --git a/tests/Test-nonexisting-quiet.px b/tests/Test-nonexisting-quiet.px index 97ee275e..62ee2416 100755 --- a/tests/Test-nonexisting-quiet.px +++ b/tests/Test-nonexisting-quiet.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 = "wget --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,11 +34,11 @@ 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); -$the_test->run(); +exit $the_test->run(); # vim: et ts=4 sw=4