X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-c.px;h=0326697eb27bcb54eecbe0d2df3178fc95db1cc1;hp=4306cab692fe6d4b1c63e2f9496235c7c3fa36a8;hb=HEAD;hpb=227d03c80379c269eaf7ee57da711f22d13b33b8 diff --git a/tests/Test-c.px b/tests/Test-c.px old mode 100644 new mode 100755 index 4306cab6..0326697e --- a/tests/Test-c.px +++ b/tests/Test-c.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; use HTTPTest; @@ -27,7 +28,7 @@ my %urls = ( }, ); -my $cmdline = "wget -c http://localhost:8080/somefile.txt"; +my $cmdline = $WgetTest::WGETPATH . " -c http://localhost:{{port}}/somefile.txt"; my $expected_error_code = 0; @@ -43,12 +44,12 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-c", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, existing => \%existing_files, output => \%expected_downloaded_files); -$the_test->run(); +exit $the_test->run(); # vim: et ts=4 sw=4