X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-O.px;h=eed42dea6db3208f9710683a36a653943678c874;hp=e584d060f5899881ef5df6c1e48e2d3e2549f87f;hb=320cfdcb658e8d6556ae9dfd902c2db1db866a6b;hpb=829f83bf5bce33e856971b55a8e00c3560da7b4b diff --git a/tests/Test-O.px b/tests/Test-O.px index e584d060..eed42dea 100755 --- a/tests/Test-O.px +++ b/tests/Test-O.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; use HTTPTest; @@ -23,7 +24,7 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " -O out http://localhost:8080/dummy.txt"; +my $cmdline = $WgetTest::WGETPATH . " -O out http://localhost:{{port}}/dummy.txt"; my $expected_error_code = 0; @@ -36,9 +37,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-O", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, output => \%expected_downloaded_files); exit $the_test->run();