X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=tests%2FTest-HTTP-Content-Disposition-1.px;h=1ee5e25d0b17213ec373d83fe650696c13b5ea61;hb=4a08094db88011153adadbf995103770b20d2a31;hp=da27e3e1d899cd874eb76b3b5bd386921fcdd8df;hpb=227d03c80379c269eaf7ee57da711f22d13b33b8;p=wget diff --git a/tests/Test-HTTP-Content-Disposition-1.px b/tests/Test-HTTP-Content-Disposition-1.px old mode 100644 new mode 100755 index da27e3e1..1ee5e25d --- a/tests/Test-HTTP-Content-Disposition-1.px +++ b/tests/Test-HTTP-Content-Disposition-1.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use strict; +use warnings; use HTTPTest; @@ -37,7 +38,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; @@ -65,12 +66,12 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-HTTP-Content-Disposition-1", - 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