Kazunobu Kuriyama wrote: > On Jul 18, 2015, at 0:40, Bram Moolenaar <[email protected]> wrote: > > > > > Patch 7.4.786 > > Problem: It is not possible for a plugin to adjust to a changed setting. > > Solution: Add the OptionSet autocommand event. (Christian Brabandt) > > Files: … > > …src/testdir/Makefile, > > src/testdir/test_autocmd_option.in, > > src/testdir/test_autocmd_option.ok, …
[...] > Hi, > > Test 8 of test_autocmd_option fails when vim is built with > FEAT_AUTOCHDIR undefined (src/feature.h:1334). > > As can be seen from the header, such a case is quite possible; in > particular, passing —disable-netbeans to the configure script is > highly likely to cause the failure. Actually, that was just my case > ;-) > > Attached is a patch to fix it. > > The general idea is quite simple: Skip test 8 when > exists(“+autochdir”) returns false. > > More specifically, > > - Let test_autocmd_option.in rewrite test.ok automatically in such a > way that test 8 is thrown away from the whole test if > exists(“+autochdir”) returns false. > > - Modify test_autocmd_option.in to suppress the output of test 8, accordingly. > > - Slightly modify Makefile to use a diff between test.out and test.ok, > instead of test.out and $*.ok. (This modification looks consistent > with the comment at line 126, doesn’t it?) > > As I wrote previously, I’m not an export of vim tests. So, I’m quite > open to any better solutions. Thanks! I think just adding the check for the autochdir feature is sufficient. And we don't want the test script in the output. -- hundred-and-one symptoms of being an internet addict: 241. You try to look for Net Search even when you're in File Manager. /// Bram Moolenaar -- [email protected] -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
