2014/8/17 Sun 0:34:54 UTC+9 Bram Moolenaar wrote:
> Patch 7.4.406
> Problem: Test 72 and 100 fail on MS-Windows.
> Solution: Set fileformat to unix in the tests. (Taro Muraoka)
> Files: src/testdir/test72.in, src/testdir/test100.in
Even after this patch, test72 still sometimes fails (about 5~10%).
E.g.:
https://ci.appveyor.com/project/k-takata/vim-ci/build/72#L805
810 28,31c28,31
811 < bar apr
812 < apr
813 < foo mar
814 < mar
815 ---
816 > bar apr
817 > apr
818 > foo mar
819 > mar
The line endings of test72.out is normally CRLF on Windows, but sometimes
only the last 4 lines become LF. It seems that the following part in the
test72.in causes the problem:
:" With encryption, cryptmethod=blowfish2
:e! Xtestfile
rubbish
:set undofile cm=blowfish2
This part opens the Xtestfile which is encrypted with blowfish with a wrong
key "rubbish". Of cause, the contents of the file are broken, but sometimes
the file might be ended with LF. Then 'fileformat' will be set to unix.
'ff' should be always the default value in test72.
Attached patch fixes this.
# I removed the line ':set ff=unix' because it didn't have an effect.
# After the next line (':e! Xtestfile'), 'ff' is set to the default value.
Regards,
Ken Takata