1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Fix Test-ftp-pasv-not-supported.px

* tests/Test-ftp-pasv-not-supported.px: We do *NOT* expect any
    downloaded files. Also, do not negate the Test response.

    The test originally expected a downloaded file, but this is not
    true. As a result, the test would fail and return exit code 1. This
    was presumably the reason why the test result was negated before
    returning to the shell. Fix this issue, so that the test runs
    correctly without any hacks.
This commit is contained in:
Darshit Shah 2015-10-11 00:37:01 +05:30
parent d484b14174
commit 3608c3001c

View File

@ -41,11 +41,7 @@ my $cmdline = $WgetTest::WGETPATH . " -S ftp://localhost:{{port}}/afile.txt";
my $expected_error_code = 8; my $expected_error_code = 8;
my %expected_downloaded_files = ( my %expected_downloaded_files = ();
'afile.txt' => {
content => $afile,
},
);
############################################################################### ###############################################################################
@ -55,6 +51,6 @@ my $the_test = FTPTest->new (
cmdline => $cmdline, cmdline => $cmdline,
errcode => $expected_error_code, errcode => $expected_error_code,
output => \%expected_downloaded_files); output => \%expected_downloaded_files);
exit !$the_test->run(); exit $the_test->run();
# vim: et ts=4 sw=4 # vim: et ts=4 sw=4