]> sjero.net Git - wget/blobdiff - tests/Test-idn-headers.px
Fix build when libpsl is not available
[wget] / tests / Test-idn-headers.px
index 3289d5f51cdd0caae810709ade3b78147770bd28..7808b88ce75ec1968d4a72883051b0b6735ce769 100755 (executable)
@@ -1,7 +1,9 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 use strict;
+use warnings;
 
+use WgetFeature qw(iri);
 use HTTPTest;
 
 # " Kon'nichiwa <dot> Japan
@@ -38,7 +40,7 @@ my %urls = (
     },
 );
 
-my $cmdline = $WgetTest::WGETPATH . " --debug --iri -rH"
+my $cmdline = $WgetTest::WGETPATH . " --iri -rH"
     . " -e http_proxy=localhost:{{port}} http://start-here.com/start.html";
 
 my $expected_error_code = 0;
@@ -54,10 +56,10 @@ my %expected_downloaded_files = (
 
 ###############################################################################
 
-my $the_test = HTTPTest->new (name => "Test-iri-headers",
-                              input => \%urls, 
-                              cmdline => $cmdline, 
-                              errcode => $expected_error_code, 
+my $the_test = HTTPTest->new (name => "Test-idn-headers",
+                              input => \%urls,
+                              cmdline => $cmdline,
+                              errcode => $expected_error_code,
                               output => \%expected_downloaded_files);
 exit $the_test->run();