diff options
author | dundargoc <gocdundar@gmail.com> | 2023-09-24 21:19:01 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-04-02 17:07:44 +0200 |
commit | ffe3002568f849df1b155b90d6ea0e1f48d8c6d5 (patch) | |
tree | 8b4732fcbc9b9902f04b1c2b990f2cc7b2ac20a4 /test/functional/options/defaults_spec.lua | |
parent | 6cfca21bac6bb39b50cba1c23ffb2b69e2d94df8 (diff) | |
download | rneovim-ffe3002568f849df1b155b90d6ea0e1f48d8c6d5.tar.gz rneovim-ffe3002568f849df1b155b90d6ea0e1f48d8c6d5.tar.bz2 rneovim-ffe3002568f849df1b155b90d6ea0e1f48d8c6d5.zip |
test: silence expected errors
This will remove unrelated errors in .nvimlog at the end of test output.
Diffstat (limited to 'test/functional/options/defaults_spec.lua')
-rw-r--r-- | test/functional/options/defaults_spec.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua index 70000f52d2..2d3d827619 100644 --- a/test/functional/options/defaults_spec.lua +++ b/test/functional/options/defaults_spec.lua @@ -865,6 +865,10 @@ describe('XDG defaults', function() end) describe('stdpath()', function() + after_each(function() + os.remove(testlog) + end) + -- Windows appends 'nvim-data' instead of just 'nvim' to prevent collisions -- due to XDG_CONFIG_HOME, XDG_DATA_HOME and XDG_STATE_HOME being the same. local function maybe_data(name) @@ -890,7 +894,7 @@ describe('stdpath()', function() it('reacts to $NVIM_APPNAME', function() local appname = 'NVIM_APPNAME_TEST' .. ('_'):rep(106) - clear({ env = { NVIM_APPNAME = appname } }) + clear({ env = { NVIM_APPNAME = appname, NVIM_LOG_FILE = testlog } }) eq(appname, fn.fnamemodify(fn.stdpath('config'), ':t')) eq(appname, fn.fnamemodify(fn.stdpath('cache'), ':t')) eq(maybe_data(appname), fn.fnamemodify(fn.stdpath('log'), ':t')) @@ -928,6 +932,9 @@ describe('stdpath()', function() -- Valid appnames: test_appname('a/b', 0) test_appname('a/b\\c', 0) + if not is_os('win') then + assert_log('Failed to start server: no such file or directory:', testlog) + end end) describe('returns a String', function() |