]> sjero.net Git - wget/blobdiff - tests/Test-ftp-iri-fallback.px
Add new test.
[wget] / tests / Test-ftp-iri-fallback.px
index 091fd00828e9bddd49e6d730bec4c3cac43402e5..fa4cdc170b18f19b0d09a8f36c2bf695b367f3a7 100755 (executable)
@@ -3,6 +3,7 @@
 use strict;
 use warnings;
 
+use WgetFeature qw(iri);
 use FTPTest;
 
 
@@ -24,7 +25,7 @@ my %urls = (
     },
 );
 
-my $cmdline = $WgetTest::WGETPATH . " --locale=iso-8859-1 -S ftp://localhost:{{port}}/fran${ccedilla_l1}ais.txt";
+my $cmdline = $WgetTest::WGETPATH . " --local-encoding=iso-8859-1 -S ftp://localhost:{{port}}/fran${ccedilla_l1}ais.txt";
 
 my $expected_error_code = 0;
 
@@ -36,10 +37,10 @@ my %expected_downloaded_files = (
 
 ###############################################################################
 
-my $the_test = FTPTest->new (name => "Test-ftp-iri",
-                             input => \%urls, 
-                             cmdline => $cmdline, 
-                             errcode => $expected_error_code, 
+my $the_test = FTPTest->new (name => "Test-ftp-iri-fallback",
+                             input => \%urls,
+                             cmdline => $cmdline,
+                             errcode => $expected_error_code,
                              output => \%expected_downloaded_files);
 exit $the_test->run();