RT76037: fix Win32 tests failures and EOL issues in t/12-fail.t #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This serie of patches fixes major flaws in how t/12-fail.t, so that the code is now portable on Win32 and trailing ^M and spaces are fixed.
https://rt.cpan.org/Ticket/Display.html?id=76037
The major issue in
t/12-fail.t
was that raw^M
were used. However perl on Win32 eats thoses, so the generated files that were erroneous were not, and so tested files had not the issue that the test expected. The point ofTest::EOL
is to avoid^M
in files. This is not just for cosmetic reasons. This is also to avoid such issues. So commit c0662b4 cleans up ^M at EOL and replaces them with "\r" that are expanded by Perl.Another issue was that
t/12-fail.t
had trailing spaces. What a shame! And due to the first issue, trailing spaces check was disabled!So now the sources are EOL clean and this is enforced by using Test::EOL on itself.