X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-ftp.px;h=2b8e25beb4daae8972b11e83baa263d06dc16d25;hp=5925e38b4f5fafac65e96e9e83add4d1629ca7ca;hb=HEAD;hpb=829f83bf5bce33e856971b55a8e00c3560da7b4b diff --git a/tests/Test-ftp.px b/tests/Test-ftp.px index 5925e38b..2b8e25be 100755 --- a/tests/Test-ftp.px +++ b/tests/Test-ftp.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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();