]> sjero.net Git - wget/blobdiff - tests/Test-HTTP-Content-Disposition-2.px
NEWS: cite --start-pos
[wget] / tests / Test-HTTP-Content-Disposition-2.px
index 589329f56df560e68d9490da051dd1bb0970cf9f..55b2abb235b4c8ae1bfad7e324bdede753b7453c 100755 (executable)
@@ -1,6 +1,7 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 use strict;
+use warnings;
 
 use HTTPTest;
 
@@ -37,7 +38,7 @@ my %urls = (
     },
 );
 
-my $cmdline = "wget --no-content-disposition http://localhost:8080/dummy.html";
+my $cmdline = $WgetTest::WGETPATH . " --no-content-disposition http://localhost:{{port}}/dummy.html";
 
 my $expected_error_code = 0;
 
@@ -65,12 +66,12 @@ my %expected_downloaded_files = (
 ###############################################################################
 
 my $the_test = HTTPTest->new (name => "Test-HTTP-Content-Disposition-2",
-                              input => \%urls, 
-                              cmdline => $cmdline, 
-                              errcode => $expected_error_code, 
+                              input => \%urls,
+                              cmdline => $cmdline,
+                              errcode => $expected_error_code,
                               existing => \%existing_files,
                               output => \%expected_downloaded_files);
-$the_test->run();
+exit $the_test->run();
 
 # vim: et ts=4 sw=4