forked from aniani/vim
patch 8.0.0701: system test failing when using X11 forwarding
Problem: System test failing when using X11 forwarding. Solution: Set $XAUTHORITY before changing $HOME. (closes #1812) Also use a better check for the exit value.
This commit is contained in:
@@ -8,7 +8,11 @@ endif
|
||||
|
||||
" Only when the +eval feature is present.
|
||||
if 1
|
||||
" Make sure the .Xauthority file can be found after changing $HOME.
|
||||
if $XAUTHORITY == ''
|
||||
let $XAUTHORITY = $HOME . '/.Xauthority'
|
||||
endif
|
||||
|
||||
" Make sure $HOME does not get read or written.
|
||||
let $HOME = '/does/not/exist'
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user