-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bad DISPLAY leaves swap file for test16 #692
Comments
Hm, with an incorrect DISPLAY variable the test will fail or you should get the message: diff --git a/src/testdir/test16.in b/src/testdir/test16.in
--- a/src/testdir/test16.in
+++ b/src/testdir/test16.in
@@ -4,7 +4,7 @@ For KDE set a font, empty 'guifont' may
STARTTEST
:so small.vim
:if $DISPLAY == "" | e! test.ok | wq! test.out | endif
-:set exrc secure
+:set exrc secure noswapfile
:if has("gui_kde")
: set guifont=Courier\ 10\ Pitch/8/-1/5/50/0/0/0/0/0
:endif |
A possibly related issue is that if Vim is waiting on a user prompt (like the swap-file prompt or a call to This is easily reproducible by:
|
Christian Brabandt wrote:
That is working around the actual problem, which is that exit() is hundred-and-one symptoms of being an internet addict: /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \ |
If the DISPLAY variable is set to a bad value (so that the distplay cannot be opened)
running the test suite results in a bad test16 and afterwards a swap file is left and
that disturbs the next test run, even with a fixed DISPLAY
export DISPLAY=:99
make test
ls ./src/testdir/.test16.in.swp
The text was updated successfully, but these errors were encountered: