# # there is a different error message when accessing a symlink on Solaris # patch has been submitted to upstream: # https://github.com/proftpd/proftpd/pull/1508 # --- a/tests/t/lib/ProFTPD/Tests/Commands/RETR.pm +++ b/tests/t/lib/ProFTPD/Tests/Commands/RETR.pm @@ -1873,7 +1873,11 @@ sub retr_fails_abs_symlink_enoent { $self->assert($expected == $resp_code, test_msg("Expected response code $expected, got $resp_code")); - $expected = "$path: No such file or directory"; + if ($^O eq 'solaris') { + $expected = "$path: Not a regular file"; + } else { + $expected = "$path: No such file or directory"; + } $self->assert($expected eq $resp_msg, test_msg("Expected response message '$expected', got '$resp_msg'")); }; @@ -2082,7 +2086,11 @@ sub retr_fails_rel_symlink_enoent { $self->assert($expected == $resp_code, test_msg("Expected response code $expected, got $resp_code")); - $expected = "$path: No such file or directory"; + if ($^O eq 'solaris') { + $expected = "$path: Not a regular file"; + } else { + $expected = "$path: No such file or directory"; + } $self->assert($expected eq $resp_msg, test_msg("Expected response message '$expected', got '$resp_msg'")); };