diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-01-31 19:58:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-31 19:58:33 +0100 |
commit | 8376486e8ff1722a0760443fc4a402bdea632dda (patch) | |
tree | 141fe889c2f2130d1084513a44399e482efba161 /test/functional/core | |
parent | 8b11cf5092e0dfe45ee0f9cf0b72ce4ddeb8740c (diff) | |
parent | 13aa23b62af4df3e7f10687b76fe8c04efa2a598 (diff) | |
download | rneovim-8376486e8ff1722a0760443fc4a402bdea632dda.tar.gz rneovim-8376486e8ff1722a0760443fc4a402bdea632dda.tar.bz2 rneovim-8376486e8ff1722a0760443fc4a402bdea632dda.zip |
Merge pull request #17537 from bfredl/neolua
refactor(tests): run unittests using main nvim binary - delete separate nvim-test build
Diffstat (limited to 'test/functional/core')
-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: |