]> sjero.net Git - wget/blobdiff - tests/Test-cookies-401.px
Add new test.
[wget] / tests / Test-cookies-401.px
index bb0d60e996fb9d863a652297042ced2fbceafefc..95cc24dcf5ac566842ee9bf740cf3e11776d2534 100755 (executable)
@@ -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();