diff options
author | Joey Gouly <joey.gouly@gmail.com> | 2024-04-14 14:27:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-14 15:27:04 +0200 |
commit | c34c31af734577255b6fb8a84b5f1ce9ff03cd6a (patch) | |
tree | ce942ff83dec86073d369465ba367eb973945fb4 /test/unit/testutil.lua | |
parent | 4ca6e08327496ed5efc3465c42464319302ba22a (diff) | |
download | rneovim-c34c31af734577255b6fb8a84b5f1ce9ff03cd6a.tar.gz rneovim-c34c31af734577255b6fb8a84b5f1ce9ff03cd6a.tar.bz2 rneovim-c34c31af734577255b6fb8a84b5f1ce9ff03cd6a.zip |
ci: enable unittests on macos-14
Add more filters so that LuaJIT can parse headers on macOS 14.
The system headers use a style of enum introduced in C++11 (and allowed
as an extension in C by clang) of the form:
enum Name : Type {
The system headers also use bitfields in the mach_vm_range_recipe* types:
struct Foo { int bar : 32; }
Neither of these constructs can be parsed by LuaJIT, so filter the lines
out. Neither of these declarations are used by neovim's unittests.
There is a (now closed) issue about bitfields for LuaJIT:
https://github.com/LuaJIT/LuaJIT/issues/951
Fixes #26145.
Diffstat (limited to 'test/unit/testutil.lua')
-rw-r--r-- | test/unit/testutil.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/testutil.lua b/test/unit/testutil.lua index c90859581d..bea08b69e8 100644 --- a/test/unit/testutil.lua +++ b/test/unit/testutil.lua @@ -146,6 +146,9 @@ local function filter_complex_blocks(body) or string.find(line, 'value_init_') or string.find(line, 'UUID_NULL') -- static const uuid_t UUID_NULL = {...} or string.find(line, 'inline _Bool') + -- used by macOS headers + or string.find(line, 'typedef enum : ') + or string.find(line, 'mach_vm_range_recipe') ) then result[#result + 1] = line |