patch 7.4.790
Problem: Test fails when the autochdir feature is not available. Test
output contains the test script.
Solution: Check for the autochdir feature. (Kazunobu Kuriyama) Only write
the relevant test output.
diff --git a/src/testdir/test_autocmd_option.in b/src/testdir/test_autocmd_option.in
index 4d71c50..1ccfe8c 100644
--- a/src/testdir/test_autocmd_option.in
+++ b/src/testdir/test_autocmd_option.in
@@ -2,7 +2,7 @@
STARTTEST
:so small.vim
-:if !has("eval") || !has("autocmd") | e! test.ok | w! test.out | qa! | endif
+:if !has("eval") || !has("autocmd") || !exists("+autochdir") | e! test.ok | w! test.out | qa! | endif
:fu! AutoCommand(match)
: let c=g:testcase
: let item=remove(g:options, 0)
@@ -67,7 +67,7 @@
:setlocal key=blah
:setlocal key=
:$put =g:testcase
-:%w! test.out
+:/^dummy text/,$w! test.out
:qa!
ENDTEST
dummy text