You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Since almost the beginning of Perl as per print returns error when succeed Perl/perl5#14221, print do not return true if print succeeds, but if the stream do not have the internal PERLIO_F_ERROR error flag.
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.
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
The text was updated successfully, but these errors were encountered: