X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-N-current.px;h=fcf4d886394fbc00e9b315cd6a7f855a23bd0211;hp=16086ae8a8e62bde6a046bec5dccef05c4bd765a;hb=320cfdcb658e8d6556ae9dfd902c2db1db866a6b;hpb=0273ca4988992ec12f0aa399466da5bbe2bebbe9 diff --git a/tests/Test-N-current.px b/tests/Test-N-current.px index 16086ae8..fcf4d886 100755 --- a/tests/Test-N-current.px +++ b/tests/Test-N-current.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 . " -N http://localhost:8080/somefile.txt"; +my $cmdline = $WgetTest::WGETPATH . " -N http://localhost:{{port}}/somefile.txt"; my $expected_error_code = 0; @@ -54,9 +55,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();