X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-iri-list.px;h=ad88e4c416a7fa9715fee7be9ef65ce9a54f49ad;hp=51bb09fe313404315ff449ca5a619e0502a2fbf2;hb=HEAD;hpb=cbd54b549a49465d4545c136d8061f6ef3889a30 diff --git a/tests/Test-iri-list.px b/tests/Test-iri-list.px index 51bb09fe..ad88e4c4 100755 --- a/tests/Test-iri-list.px +++ b/tests/Test-iri-list.px @@ -1,7 +1,9 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; +use WgetFeature qw(iri); use HTTPTest; # cf. http://en.wikipedia.org/wiki/Latin1 @@ -141,7 +143,7 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " --iri -d -i http://localhost:{{port}}/url_list.txt"; +my $cmdline = $WgetTest::WGETPATH . " --iri --trust-server-names -i http://localhost:{{port}}/url_list.txt"; my $expected_error_code = 0; @@ -163,9 +165,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-iri-list", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, output => \%expected_downloaded_files); exit $the_test->run();