Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure #13

Open
jddurand opened this issue Dec 1, 2022 · 1 comment
Open

Test failure #13

jddurand opened this issue Dec 1, 2022 · 1 comment
Assignees
Labels

Comments

@jddurand
Copy link

jddurand commented Dec 1, 2022

C.f. attachment. This is with perl 5.37.6.

My analysis falled back to Perl/perl5#14221 and Perl/perl5#20060 since, indeed, your test suite fails when you open a file in append mode only, do a readline, and then check for print success:

Therefore, after the file is opened in append mode, the readline fails and sets the error flag, the later remains alive when print is called, so print returns failure. Calling clearerr after the expected readline failure in Win32::LongPath test suite make it succeeds, c.f. the diff attachment.

cpan-Win32-LongPath-2.2.txt
Win32-LongPath-2.2-readline-clearerr-patch.txt

@rdboisvert
Copy link
Owner

Thank you for providing this information. I will investigate and correct.

@rdboisvert rdboisvert self-assigned this Dec 2, 2022
@rdboisvert rdboisvert added the bug label Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants