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
1 changed files with 2 additions and 6 deletions

View File

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