X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-c.px;h=0326697eb27bcb54eecbe0d2df3178fc95db1cc1;hp=58b45f722f7e6d56d905992a3ebb42f96a344d4e;hb=HEAD;hpb=caae3b70f46bd519857b595f7f06ea0179551336 diff --git a/tests/Test-c.px b/tests/Test-c.px index 58b45f72..0326697e 100755 --- a/tests/Test-c.px +++ b/tests/Test-c.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; use HTTPTest; @@ -27,7 +28,7 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " -c http://localhost:8080/somefile.txt"; +my $cmdline = $WgetTest::WGETPATH . " -c http://localhost:{{port}}/somefile.txt"; my $expected_error_code = 0; @@ -43,9 +44,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-c", - 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();