X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-O.px;h=eed42dea6db3208f9710683a36a653943678c874;hp=722ff39c07aeea2bf6fd401d89457b5c5f9a041f;hb=38a7829dcb4eb5dba28dbf0f05c6a80fea9217f8;hpb=f0b4f352bfedd1ac5b639db801445261f19a73ff diff --git a/tests/Test-O.px b/tests/Test-O.px index 722ff39c..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 = "wget -O out http://localhost:8080/dummy.txt"; +my $cmdline = $WgetTest::WGETPATH . " -O out http://localhost:{{port}}/dummy.txt"; my $expected_error_code = 0; @@ -36,11 +37,11 @@ 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); -$the_test->run(); +exit $the_test->run(); # vim: et ts=4 sw=4