diff options
author | Daniel Hahler <git@thequod.de> | 2019-12-02 22:21:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-02 22:21:15 +0100 |
commit | 22b52dd462e5dc9d5429305215bfb20aa20517c5 (patch) | |
tree | e949639a97f7a5e6e39922bf521c5071c78986b2 /test/functional/options/defaults_spec.lua | |
parent | 56be9fbde1ec27fd8ca3fdb8eb6adb94b8c33b53 (diff) | |
download | rneovim-22b52dd462e5dc9d5429305215bfb20aa20517c5.tar.gz rneovim-22b52dd462e5dc9d5429305215bfb20aa20517c5.tar.bz2 rneovim-22b52dd462e5dc9d5429305215bfb20aa20517c5.zip |
log_init: call log_path_init (#11501)
This has to be done after `init_homedir` for XDG default and `set_init_1` for
lookup from env, which could be done earlier likely (to help with
https://github.com/neovim/neovim/issues/10937), but this keeps it in
sync with Vim.
Fixes https://github.com/neovim/neovim/issues/11499.
Diffstat (limited to 'test/functional/options/defaults_spec.lua')
-rw-r--r-- | test/functional/options/defaults_spec.lua | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua index 490a04186d..57e5077989 100644 --- a/test/functional/options/defaults_spec.lua +++ b/test/functional/options/defaults_spec.lua @@ -224,9 +224,6 @@ describe('startup defaults', function() XDG_DATA_HOME=xdgdir, NVIM_LOG_FILE='', -- Empty is invalid. }}) - -- server_start() calls ELOG, which tickles log_path_init(). - pcall(command, 'call serverstart(serverlist()[0])') - eq(xdgdir..'/'..datasubdir..'/log', string.gsub(eval('$NVIM_LOG_FILE'), '\\', '/')) end) it('defaults to stdpath("data")/log if invalid', function() @@ -235,9 +232,6 @@ describe('startup defaults', function() XDG_DATA_HOME=xdgdir, NVIM_LOG_FILE='.', -- Any directory is invalid. }}) - -- server_start() calls ELOG, which tickles log_path_init(). - pcall(command, 'call serverstart(serverlist()[0])') - eq(xdgdir..'/'..datasubdir..'/log', string.gsub(eval('$NVIM_LOG_FILE'), '\\', '/')) end) it('defaults to .nvimlog if stdpath("data") is invalid', function() @@ -245,9 +239,6 @@ describe('startup defaults', function() XDG_DATA_HOME='Xtest-missing-xdg-dir', NVIM_LOG_FILE='.', -- Any directory is invalid. }}) - -- server_start() calls ELOG, which tickles log_path_init(). - pcall(command, 'call serverstart(serverlist()[0])') - eq('.nvimlog', eval('$NVIM_LOG_FILE')) end) end) |