bobtfish/test-eol — pull request #2 by dolmen (2012-09-08 08:43:14+00:00)
Title: RT76037: fix Win32 tests failures and EOL issues in t/12-fail.t

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 of `Test::EOL` is to avoid `^M` in files. *This is not just for cosmetic reasons*. This is also to avoid such issues. So commit c0662b43b1c86733553afed7453012f25c6360e9 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.