X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-N-smaller.px;h=2ea0ab802f1565baa6f3a327f5a6513b7e919abc;hp=9ad44c29c14f4f26951666d9bee3106af7263fb8;hb=320cfdcb658e8d6556ae9dfd902c2db1db866a6b;hpb=8fc5241a2d391f2b0b460e6ee2a4cd71aa764d1e diff --git a/tests/Test-N-smaller.px b/tests/Test-N-smaller.px index 9ad44c29..2ea0ab80 100755 --- a/tests/Test-N-smaller.px +++ b/tests/Test-N-smaller.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; use HTTPTest; @@ -34,7 +35,7 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " -N http://localhost:8080/somefile.txt"; +my $cmdline = $WgetTest::WGETPATH . " -N http://localhost:{{port}}/somefile.txt"; my $expected_error_code = 0; @@ -55,9 +56,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-N-current", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, existing => \%existing_files, output => \%expected_downloaded_files); exit $the_test->run();