Item9895: ViewFileScript Unit tests fail on windows due to binmode issue in the tests.
Priority: Normal
Current State: Closed
Released In: 1.1.2
Target Release: patch
ViewFileScriptTests
fail due to several issues:
- Regular expression used to strip headers was greedy for \r\n. If file content contained \r\n, then the entire contents were stripped.
- The test attachments were created without binmode, so they contained \r\n instead of simple \n, causing more failures.
Also
ViewFileScriptTests need to have some attachments with binary data that would be modified due to incorrect binmode on certain platforms. This probably won't fail on Linux, but will catch issues on Windows.
--
GeorgeClark - 26 Oct 2010