X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=tests%2FTest-nonexisting-quiet.px;h=fa6fa0f2477dfc0afa8530fd9f4437088ac8a060;hb=1fe5ddb7feb233de8b312c24a2b3a482316026aa;hp=97ee275e84122a089d4a35c256c4964df187a3c6;hpb=f0b4f352bfedd1ac5b639db801445261f19a73ff;p=wget diff --git a/tests/Test-nonexisting-quiet.px b/tests/Test-nonexisting-quiet.px index 97ee275e..fa6fa0f2 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 = "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 = ( ); @@ -37,7 +38,7 @@ my $the_test = HTTPTest->new (name => "Test-nonexisting-quiet", cmdline => $cmdline, errcode => $expected_error_code, output => \%expected_downloaded_files); -$the_test->run(); +exit $the_test->run(); # vim: et ts=4 sw=4