X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=tests%2FTest-Restrict-Lowercase.px;h=e5d270dc1e63be4657bc0a7b5f591aa55750873b;hb=30385d6c5dfc341fdce111392dbc55e5cdb9202a;hp=98c8ed60845c41caac943341290bc0ae8eab4065;hpb=f0b4f352bfedd1ac5b639db801445261f19a73ff;p=wget diff --git a/tests/Test-Restrict-Lowercase.px b/tests/Test-Restrict-Lowercase.px index 98c8ed60..e5d270dc 100755 --- a/tests/Test-Restrict-Lowercase.px +++ b/tests/Test-Restrict-Lowercase.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use strict; +use warnings; use HTTPTest; @@ -32,7 +33,7 @@ my %urls = ( }, ); -my $cmdline = "wget --restrict-file-names=lowercase http://localhost:8080/SomePage.html"; +my $cmdline = $WgetTest::WGETPATH . " --restrict-file-names=lowercase http://localhost:{{port}}/SomePage.html"; my $expected_error_code = 0; @@ -44,12 +45,12 @@ my %expected_downloaded_files = ( ############################################################################### -my $the_test = HTTPTest->new (name => "Test9", +my $the_test = HTTPTest->new (name => "Test-Restrict-Lowercase", 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