X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-c-partial.px;h=57095472e9b57d90382053287fb7bba0f07031a8;hp=8661cfa6571417d14a726a5013b6dc8e35d7ccf2;hb=d763f8bf6d6e13ce006ffab616cc8a77e747a633;hpb=227d03c80379c269eaf7ee57da711f22d13b33b8 diff --git a/tests/Test-c-partial.px b/tests/Test-c-partial.px old mode 100644 new mode 100755 index 8661cfa6..57095472 --- a/tests/Test-c-partial.px +++ b/tests/Test-c-partial.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use strict; +use warnings; use HTTPTest; @@ -9,17 +10,22 @@ use HTTPTest; my $partiallydownloaded = < { @@ -32,7 +38,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; @@ -44,7 +50,7 @@ my %existing_files = ( my %expected_downloaded_files = ( 'somefile.txt' => { - content => $wholefile, + content => $downloadedfile, }, ); @@ -56,7 +62,7 @@ my $the_test = HTTPTest->new (name => "Test-c-partial", errcode => $expected_error_code, existing => \%existing_files, output => \%expected_downloaded_files); -$the_test->run(); +exit $the_test->run(); # vim: et ts=4 sw=4