Hi, 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 -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
# HG changeset patch # Parent 1533695bb360a556260076069f280a4c0a792190 diff --git a/src/testdir/test72.in b/src/testdir/test72.in --- a/src/testdir/test72.in +++ b/src/testdir/test72.in @@ -8,7 +8,6 @@ STARTTEST :" Test 'undofile': first a simple one-line change. :set nocompatible viminfo+=nviminfo visualbell :set ul=100 undofile nomore -:set ff=unix :e! Xtestfile ggdGithis is one line:set ul=100 :s/one/ONE/ @@ -83,7 +82,7 @@ uu:w >>test.out :" With encryption, cryptmethod=blowfish :e! Xtestfile rubbish -:set undofile cm=blowfish +:set undofile cm=blowfish ff& ggdGijan feb mar @@ -109,7 +108,7 @@ u:.w >>test.out :" With encryption, cryptmethod=blowfish2 :e! Xtestfile rubbish -:set undofile cm=blowfish2 +:set undofile cm=blowfish2 ff& ggdGijan feb mar
