X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-HTTP-Content-Disposition-1.px;h=3d2701433b0ba136478ff48dc13af7b2987773bd;hp=3727ad162187647579d4a8492241830ccbefb1d1;hb=d763f8bf6d6e13ce006ffab616cc8a77e747a633;hpb=f0b4f352bfedd1ac5b639db801445261f19a73ff diff --git a/tests/Test-HTTP-Content-Disposition-1.px b/tests/Test-HTTP-Content-Disposition-1.px index 3727ad16..3d270143 100755 --- 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; @@ -64,13 +65,13 @@ my %expected_downloaded_files = ( ############################################################################### -my $the_test = HTTPTest->new (name => "Test6", +my $the_test = HTTPTest->new (name => "Test-HTTP-Content-Disposition-1", 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