diff options
| author | bfredl <bjorn.linse@gmail.com> | 2023-09-12 11:16:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-12 11:16:35 +0200 |
| commit | 1c4a93b591828bc6970edad6282c004eb46f0b2d (patch) | |
| tree | 2f2a403f8b0132976dfe0a61eb78f65028329cdd /test/unit/helpers.lua | |
| parent | 6b5f44817e93c2985f3ea32122f1dc0047054018 (diff) | |
| parent | b04286a187d57c50f01cd36cd4668b7a69026579 (diff) | |
| download | rneovim-1c4a93b591828bc6970edad6282c004eb46f0b2d.tar.gz rneovim-1c4a93b591828bc6970edad6282c004eb46f0b2d.tar.bz2 rneovim-1c4a93b591828bc6970edad6282c004eb46f0b2d.zip | |
Merge pull request #13243 from bfredl/intersection
feat(extmark): support highlighting and querying multiline ranges
Diffstat (limited to 'test/unit/helpers.lua')
| -rw-r--r-- | test/unit/helpers.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index e9b97266d0..43b6980702 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -849,6 +849,16 @@ 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 + local module = { cimport = cimport, cppimport = cppimport, @@ -876,6 +886,7 @@ local module = { ptr2addr = ptr2addr, ptr2key = ptr2key, debug_log = debug_log, + is_asan = is_asan, } module = global_helpers.tbl_extend('error', module, global_helpers) return function() |