X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=tests%2FTest-E-k-K.px;h=4a2cf6148e8f3e618bb2347a7d08eb7f06c1a154;hb=edc9055768fed952b30629a9e8fa38ef68761882;hp=854d47ad7e500df6ab4b823f834c4a0008e9ffb8;hpb=f0b4f352bfedd1ac5b639db801445261f19a73ff;p=wget diff --git a/tests/Test-E-k-K.px b/tests/Test-E-k-K.px index 854d47ad..4a2cf614 100755 --- a/tests/Test-E-k-K.px +++ b/tests/Test-E-k-K.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use strict; +use warnings; use HTTPTest; @@ -13,7 +14,7 @@ my $mainpage = <Main Page Title - Secondary Page + Secondary Page EOF @@ -60,7 +61,7 @@ my %urls = ( }, ); -my $cmdline = "wget -d -r -nd -E -k -K http://localhost:8080/index.php"; +my $cmdline = $WgetTest::WGETPATH . " -d -r -nd -E -k -K http://localhost:{{port}}/index.php"; my $expected_error_code = 0; @@ -83,7 +84,7 @@ my $the_test = HTTPTest->new (name => "Test-E-k-K", cmdline => $cmdline, errcode => $expected_error_code, output => \%expected_downloaded_files); -$the_test->run(); +exit $the_test->run(); # vim: et ts=4 sw=4