X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=tests%2FTest-O--no-content-disposition-trivial.px;h=a5b264be2914b946f910edfc4c3288f77748f67b;hb=c9bc854938346430749285c95ba42d552d68d048;hp=be25960c8416758e33d797cbc6fb2c4f4b3bf1aa;hpb=6e3d978b8bca9b9b3408590e9733d5c93cf90f6d;p=wget diff --git a/tests/Test-O--no-content-disposition-trivial.px b/tests/Test-O--no-content-disposition-trivial.px index be25960c..a5b264be 100755 --- a/tests/Test-O--no-content-disposition-trivial.px +++ b/tests/Test-O--no-content-disposition-trivial.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; use HTTPTest; @@ -23,7 +24,7 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " -O out --no-content-disposition http://localhost:8080/dummy.txt"; +my $cmdline = $WgetTest::WGETPATH . " -O out --no-content-disposition http://localhost:{{port}}/dummy.txt"; my $expected_error_code = 0; @@ -36,9 +37,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-O--no-content-disposition-trivial", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, output => \%expected_downloaded_files); exit $the_test->run();