aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/startup_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-01-30 20:36:49 +0100
committerbfredl <bjorn.linse@gmail.com>2023-01-31 19:28:26 +0100
commit13aa23b62af4df3e7f10687b76fe8c04efa2a598 (patch)
treeb2874af2444d1f8798d3ebde258e05faddebcf3c /test/functional/core/startup_spec.lua
parent42999a8d645ccf880222f0192671b8ce01bde361 (diff)
downloadrneovim-13aa23b62af4df3e7f10687b76fe8c04efa2a598.tar.gz
rneovim-13aa23b62af4df3e7f10687b76fe8c04efa2a598.tar.bz2
rneovim-13aa23b62af4df3e7f10687b76fe8c04efa2a598.zip
refactor(tests): run unittests using main nvim binary in interpreter mode
This allows us to get rid of the separate "nvim-test" target
Diffstat (limited to 'test/functional/core/startup_spec.lua')
-rw-r--r--test/functional/core/startup_spec.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index 1be5de6488..e9b47a0251 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -102,6 +102,13 @@ describe('startup', function()
end)
it('os.exit() sets Nvim exitcode', function()
+ -- tricky: LeakSanitizer triggers on os.exit() and disrupts the return value, disable it
+ exec_lua [[
+ local asan_options = os.getenv 'ASAN_OPTIONS'
+ if asan_options ~= nil and asan_options ~= '' then
+ vim.loop.os_setenv('ASAN_OPTIONS', asan_options..':detect_leaks=0')
+ end
+ ]]
-- nvim -l foo.lua -arg1 -- a b c
assert_l_out([[
bufs: