]> sjero.net Git - wget/blobdiff - tests/Test-nonexisting-quiet.px
Improved exit status handling.
[wget] / tests / Test-nonexisting-quiet.px
index 97ee275e84122a089d4a35c256c4964df187a3c6..fa6fa0f2477dfc0afa8530fd9f4437088ac8a060 100755 (executable)
@@ -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