diff options
| author | dundargoc <gocdundar@gmail.com> | 2025-03-01 13:30:28 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2025-03-02 11:57:41 +0100 |
| commit | 59c328bc88ccb1d331c3e63768bb11c3555b1f57 (patch) | |
| tree | 796cb7a444fec82f0c9763a6a50dc82e1dbe99bc /test/unit | |
| parent | b45a44dd32634ed359e2dfde078f753e9e4e9294 (diff) | |
| download | rneovim-59c328bc88ccb1d331c3e63768bb11c3555b1f57.tar.gz rneovim-59c328bc88ccb1d331c3e63768bb11c3555b1f57.tar.bz2 rneovim-59c328bc88ccb1d331c3e63768bb11c3555b1f57.zip | |
test: simplify ASAN detection
Diffstat (limited to 'test/unit')
| -rw-r--r-- | test/unit/testutil.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/unit/testutil.lua b/test/unit/testutil.lua index 7fd0e73b47..a38e602ac8 100644 --- a/test/unit/testutil.lua +++ b/test/unit/testutil.lua @@ -876,18 +876,6 @@ local function ptr2key(ptr) return ffi.string(s) end -local function is_asan() - cimport('./src/nvim/version.h') - local status, res = pcall(function() - return lib.version_cflags - end) - if status then - return ffi.string(res):match('-fsanitize=[a-z,]*address') - else - return false - end -end - --- @class test.unit.testutil.module local M = { cimport = cimport, @@ -916,7 +904,6 @@ local M = { ptr2addr = ptr2addr, ptr2key = ptr2key, debug_log = debug_log, - is_asan = is_asan, } --- @class test.unit.testutil: test.unit.testutil.module, test.testutil M = vim.tbl_extend('error', M, t_global) |