X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-N-HTTP-Content-Disposition.px;h=ab8cea82b8d7a5304f2b31645105d48854726b97;hp=42aa39ad8c6f0ac2691b0de0ab9b3288c2df7c52;hb=320cfdcb658e8d6556ae9dfd902c2db1db866a6b;hpb=b4077ab56ae658a9a067deeafeb8c540cf947721 diff --git a/tests/Test-N-HTTP-Content-Disposition.px b/tests/Test-N-HTTP-Content-Disposition.px index 42aa39ad..ab8cea82 100755 --- a/tests/Test-N-HTTP-Content-Disposition.px +++ b/tests/Test-N-HTTP-Content-Disposition.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; use HTTPTest; @@ -26,7 +27,7 @@ my %urls = ( ); my $cmdline = $WgetTest::WGETPATH . " -N --content-disposition " - . "http://localhost:8080/dummy.txt"; + . "http://localhost:{{port}}/dummy.txt"; my $expected_error_code = 0; @@ -40,9 +41,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-N-HTTP-Content-Disposition", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, output => \%expected_downloaded_files); exit $the_test->run();