X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest--no-content-disposition.px;h=27523a4232372e55e5a8aa6869319dd853de50ff;hp=d5433f0009c3680b3a37b52fa1ee74a1ee716c17;hb=HEAD;hpb=e7d78dd2a75d0ea21a63ac4968df6079b8018cd5 diff --git a/tests/Test--no-content-disposition.px b/tests/Test--no-content-disposition.px index d5433f00..27523a42 100755 --- a/tests/Test--no-content-disposition.px +++ b/tests/Test--no-content-disposition.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; use HTTPTest; @@ -33,7 +34,7 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " --no-content-disposition http://localhost:8080/dummy.html"; +my $cmdline = $WgetTest::WGETPATH . " --no-content-disposition http://localhost:{{port}}/dummy.html"; my $expected_error_code = 0; @@ -46,9 +47,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test--no-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();