neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit db2c3d1143fb5888602a2cee84578bd8a9c88bd7
parent 59b672fda2c98185a7d8b7740453635b8a40f2ff
Author: Sören Tempel <soeren+git@soeren-tempel.net>
Date:   Fri, 21 Feb 2025 23:37:15 +0000

fix(tests): filter out lines with __typeof__ keyword (#32524)

Problem: On 32-bit architectures, musl libc makes heavy use of
__typeof__ as part of its __REDIR macro for optional backwards
compatibility with 32-bit time_t values. Unfortunately, the
__typeof__ keyword is not supported by the LuaJIT C parser.

Solution: Filter out the keyword in filter_complex_blocks.
Diffstat:
Mtest/unit/testutil.lua | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/test/unit/testutil.lua b/test/unit/testutil.lua @@ -146,6 +146,8 @@ 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 musl libc headers on 32-bit arches via __REDIR marco + or string.find(line, '__typeof__') -- used by macOS headers or string.find(line, 'typedef enum : ') or string.find(line, 'mach_vm_range_recipe')