]> sjero.net Git - wget/blobdiff - tests/Test-cookies-401.px
Fix build when libpsl is not available
[wget] / tests / Test-cookies-401.px
index bb0d60e996fb9d863a652297042ced2fbceafefc..1c0249044d96cb86d21d383797216ff265daf630 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
@@ -29,10 +29,10 @@ my %urls = (
     },
 );
 
-my $cmdline = $WgetTest::WGETPATH . " -d http://localhost:{{port}}/one.txt"
+my $cmdline = $WgetTest::WGETPATH . " http://localhost:{{port}}/one.txt"
     . " http://localhost:{{port}}/two.txt";
 
-my $expected_error_code = 0;
+my $expected_error_code = 6;
 
 my %expected_downloaded_files = (
     'two.txt' => {
@@ -43,9 +43,9 @@ my %expected_downloaded_files = (
 ###############################################################################
 
 my $the_test = HTTPTest->new (name => "Test-cookies-401",
-                              input => \%urls, 
-                              cmdline => $cmdline, 
-                              errcode => $expected_error_code, 
+                              input => \%urls,
+                              cmdline => $cmdline,
+                              errcode => $expected_error_code,
                               output => \%expected_downloaded_files);
 exit $the_test->run();