]> sjero.net Git - wget/blobdiff - tests/Test-O-nonexisting.px
NEWS: cite --start-pos
[wget] / tests / Test-O-nonexisting.px
index 60ef7c70b1c7c8db2b0c2146771ffa9c9b98b663..8fde7c8fa59f481fec0369f0aaea482751b12dba 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
@@ -26,7 +26,7 @@ my %urls = (
 
 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' => {
@@ -37,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();