71388Re: fix tests for DOS/Windows
- Jun 19, 2013Ken Takata wrote:
> 2013/06/18 Tue 9:03:02 UTC+9 Taro MURAOKA wrote:Setting 'encoding' make it fail on Unix. Note that the format of the
> > There are tests failed on DOS/Windows environment.
> > I have fixed two of them.
> I have fixed another two of them.
> test71: (fix-test71.patch)
> * The 'fileformat' of test71.in is unix, but dotest.in executes ':set ff&'.
> This makes :bwipe failure. It should be :bwipe!.
> * 'encoding' should be latin1.
> (I don't know why test71 doesn't fail on Unix without this setting.)
test file is "latin1". What is the 'encoding' by default?
> test17: (fix-test17.patch)Thanks.
> * mkdir on Windows doesn't support an option -p.
> * 'rm -rf' cannot be used on Windows without installing Unix tools.
> * The result of ':checkpath!' is different. Need to replace "\" to "/".
> * Some of ':e' should be ':e!' because 'fileformat' can be changed.
> Actually the last STARTTEST..ENDTEST block in the test17 still fails afterI'm not sure. It may also depend on what "diff" command you use.
> applying fix-test17.patch. Here is the result:
> < bar.c^M^@ NOT FOUND
> > Xdir1/dir2/bar.c
> > Xdir1/dir2/bar.c -->
> > Xdir1/dir2/baz.c
> > Xdir1/dir2/baz.c -->
> > foo.c^@ (Already listed)
> The difference of 'fileformat' seems to cause the result.
> This can be fixed by applying additional-fix-test17.patch,
> but I don't think this is the right solution.
> Is this behavior intended?
Some ignore differences in line endings, some don't.
This test is not about testing 'fileformat', thus is those extra
commands make the test pass, I think that's fine. I'm not going to
include this change now, please resend if you still think this is the
Did you hear about the new 3 million dollar West Virginia State Lottery?
The winner gets 3 dollars a year for a million years.
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
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 vim_dev+unsubscribe@....
For more options, visit https://groups.google.com/groups/opt_out.
- << Previous post in topic Next post in topic >>