]> sjero.net Git - wget/blobdiff - tests/Test-HTTP-Content-Disposition.px
Updated config.guess, config.sub, install.sh.
[wget] / tests / Test-HTTP-Content-Disposition.px
index c9bc62fa9d0d5d2b00c17e860260359205bd13ef..afc964a4e1df4fc11abfc6b19f9bd8c6c653d206 100755 (executable)
@@ -1,6 +1,7 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 
 use strict;
+use warnings;
 
 use HTTPTest;
 
@@ -33,7 +34,7 @@ my %urls = (
     },
 );
 
-my $cmdline = "wget http://localhost:8080/dummy.html";
+my $cmdline = $WgetTest::WGETPATH . " -e contentdisposition=on http://localhost:{{port}}/dummy.html";
 
 my $expected_error_code = 0;
 
@@ -45,12 +46,12 @@ my %expected_downloaded_files = (
 
 ###############################################################################
 
-my $the_test = HTTPTest->new (name => "Test5",
+my $the_test = HTTPTest->new (name => "Test-HTTP-Content-Disposition",
                               input => \%urls, 
                               cmdline => $cmdline, 
                               errcode => $expected_error_code, 
                               output => \%expected_downloaded_files);
-$the_test->run();
+exit $the_test->run();
 
 # vim: et ts=4 sw=4