diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-01-30 20:36:49 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-01-31 19:28:26 +0100 |
commit | 13aa23b62af4df3e7f10687b76fe8c04efa2a598 (patch) | |
tree | b2874af2444d1f8798d3ebde258e05faddebcf3c /test/functional/core/startup_spec.lua | |
parent | 42999a8d645ccf880222f0192671b8ce01bde361 (diff) | |
download | rneovim-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.lua | 7 |
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: |