diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-07-08 17:03:21 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-07-08 17:03:21 +0200 |
commit | 11e79bb04ea635d180dd79b1d5cbc755b56e66e1 (patch) | |
tree | c73aad78396f094ff3cc59d7261d4e99f59e0b82 /src/testdir/setup.vim | |
parent | 0ea5070d79c8a13fb2403280a72f968495b0fab7 (diff) | |
download | vim-git-11e79bb04ea635d180dd79b1d5cbc755b56e66e1.tar.gz |
patch 8.0.0701: system test failing when using X11 forwardingv8.0.0701
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.
Diffstat (limited to 'src/testdir/setup.vim')
-rw-r--r-- | src/testdir/setup.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/testdir/setup.vim b/src/testdir/setup.vim index a02840158..4b6c08963 100644 --- a/src/testdir/setup.vim +++ b/src/testdir/setup.vim @@ -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 - |