X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-HTTP-Content-Disposition.px;h=afc964a4e1df4fc11abfc6b19f9bd8c6c653d206;hp=465c43fba66a53791e7e0eeb7c57a8a47451642b;hb=edc9055768fed952b30629a9e8fa38ef68761882;hpb=227d03c80379c269eaf7ee57da711f22d13b33b8 diff --git a/tests/Test-HTTP-Content-Disposition.px b/tests/Test-HTTP-Content-Disposition.px old mode 100644 new mode 100755 index 465c43fb..afc964a4 --- a/tests/Test-HTTP-Content-Disposition.px +++ b/tests/Test-HTTP-Content-Disposition.px @@ -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; @@ -50,7 +51,7 @@ my $the_test = HTTPTest->new (name => "Test-HTTP-Content-Disposition", cmdline => $cmdline, errcode => $expected_error_code, output => \%expected_downloaded_files); -$the_test->run(); +exit $the_test->run(); # vim: et ts=4 sw=4