X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=tests%2FTest-ftp.px;h=49a96810d149a1ae20f9342de42f99a71f556c16;hb=4a08094db88011153adadbf995103770b20d2a31;hp=5925e38b4f5fafac65e96e9e83add4d1629ca7ca;hpb=caae3b70f46bd519857b595f7f06ea0179551336;p=wget diff --git a/tests/Test-ftp.px b/tests/Test-ftp.px index 5925e38b..49a96810 100755 --- a/tests/Test-ftp.px +++ b/tests/Test-ftp.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use strict; +use warnings; use FTPTest; @@ -21,7 +22,7 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " -S ftp://localhost:8021/afile.txt"; +my $cmdline = $WgetTest::WGETPATH . " -S ftp://localhost:{{port}}/afile.txt"; my $expected_error_code = 0; @@ -34,9 +35,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = FTPTest->new (name => "Test-ftp", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, output => \%expected_downloaded_files); exit $the_test->run();