X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=tests%2FTest-cookies-401.px;h=1c0249044d96cb86d21d383797216ff265daf630;hb=38a7829dcb4eb5dba28dbf0f05c6a80fea9217f8;hp=bb0d60e996fb9d863a652297042ced2fbceafefc;hpb=d21dde51b84efef7254ae9932f9095a46945b809;p=wget diff --git a/tests/Test-cookies-401.px b/tests/Test-cookies-401.px index bb0d60e9..1c024904 100755 --- a/tests/Test-cookies-401.px +++ b/tests/Test-cookies-401.px @@ -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();