X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-noop.px;h=e2ebc3593e7eb5742f5bc20f9d18924d1b090ddf;hp=296e845a42de4d00051226a17e20a8e00b808199;hb=HEAD;hpb=f0b4f352bfedd1ac5b639db801445261f19a73ff diff --git a/tests/Test-noop.px b/tests/Test-noop.px index 296e845a..e2ebc359 100755 --- a/tests/Test-noop.px +++ b/tests/Test-noop.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; use HTTPTest; @@ -33,7 +34,7 @@ my %urls = ( }, ); -my $cmdline = "wget http://localhost:8080/"; +my $cmdline = $WgetTest::WGETPATH . " http://localhost:{{port}}/"; my $expected_error_code = 0; @@ -46,11 +47,11 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-noop", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + 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