X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-np.px;h=f674193a3d7b50f57cf3232723dffabcdd6d56d9;hp=dcb165fda033a21a2867301d57ae3e65e891b3dc;hb=d763f8bf6d6e13ce006ffab616cc8a77e747a633;hpb=92b2323253a9cc0e5e3491fe1895ef710315aed7 diff --git a/tests/Test-np.px b/tests/Test-np.px index dcb165fd..f674193a 100755 --- a/tests/Test-np.px +++ b/tests/Test-np.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use strict; +use warnings; use HTTPTest; @@ -14,7 +15,7 @@ my $mainpage = <

- Some text and a link to a second page. + Some text and a link to a second page.

@@ -27,7 +28,7 @@ my $secondpage = <

- Some text and a link to a third page. + Some text and a link to a third page.

@@ -40,7 +41,7 @@ my $thirdpage = <

- Some text and a link to a higher level page. + Some text and a link to a higher level page.

@@ -69,7 +70,7 @@ my $higherlevelpage = < This page is on a higher level in the URL path hierarchy. Therefore, it should not be downloaded. Wget should not visit the following link to a - fourth page. + fourth page.

@@ -119,7 +120,7 @@ my %urls = ( }, ); -my $cmdline = "wget -np -nH -r http://localhost:8080/firstlevel/"; +my $cmdline = $WgetTest::WGETPATH . " -np -nH -r http://localhost:{{port}}/firstlevel/"; my $expected_error_code = 0; @@ -142,7 +143,7 @@ my $the_test = HTTPTest->new (name => "Test-np", cmdline => $cmdline, errcode => $expected_error_code, output => \%expected_downloaded_files); -$the_test->run(); +exit $the_test->run(); # vim: et ts=4 sw=4