]> sjero.net Git - wget/blobdiff - tests/Test-idn-headers.px
Fix build when libpsl is not available
[wget] / tests / Test-idn-headers.px
index f07621c326ac0a22e2d3391e8d743d8caec2a13d..7808b88ce75ec1968d4a72883051b0b6735ce769 100755 (executable)
@@ -1,8 +1,9 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;
 
+use WgetFeature qw(iri);
 use HTTPTest;
 
 # " Kon'nichiwa <dot> Japan
@@ -39,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;
@@ -55,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();