]> sjero.net Git - wget/blobdiff - tests/Test-ftp.px
NEWS: cite --start-pos
[wget] / tests / Test-ftp.px
old mode 100644 (file)
new mode 100755 (executable)
index c756ac6..2b8e25b
@@ -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 = "wget -S ftp://localhost:8021/afile.txt";
+my $cmdline = $WgetTest::WGETPATH . " -S ftp://localhost:{{port}}/afile.txt";
 
 my $expected_error_code = 0;
 
@@ -34,11 +35,11 @@ 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);
-$the_test->run();
+exit $the_test->run();
 
 # vim: et ts=4 sw=4