aboutsummaryrefslogtreecommitdiff
path: root/test/unit/testutil.lua
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2024-11-25 19:15:05 +0000
committerJosh Rahm <joshuarahm@gmail.com>2024-11-25 19:27:38 +0000
commitc5d770d311841ea5230426cc4c868e8db27300a8 (patch)
treedd21f70127b4b8b5f109baefc8ecc5016f507c91 /test/unit/testutil.lua
parent9be89f131f87608f224f0ee06d199fcd09d32176 (diff)
parent081beb3659bd6d8efc3e977a160b1e72becbd8a2 (diff)
downloadrneovim-c5d770d311841ea5230426cc4c868e8db27300a8.tar.gz
rneovim-c5d770d311841ea5230426cc4c868e8db27300a8.tar.bz2
rneovim-c5d770d311841ea5230426cc4c868e8db27300a8.zip
Merge remote-tracking branch 'upstream/master' into mix_20240309
Diffstat (limited to 'test/unit/testutil.lua')
-rw-r--r--test/unit/testutil.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/testutil.lua b/test/unit/testutil.lua
index a6db7beab1..4720d4d730 100644
--- a/test/unit/testutil.lua
+++ b/test/unit/testutil.lua
@@ -151,6 +151,13 @@ local function filter_complex_blocks(body)
or string.find(line, 'mach_vm_range_recipe')
)
then
+ -- HACK: remove bitfields from specific structs as luajit can't seem to handle them.
+ if line:find('struct VTermState') then
+ line = string.gsub(line, 'state : 8;', 'state;')
+ end
+ if line:find('VTermStringFragment') then
+ line = string.gsub(line, 'size_t.*len : 30;', 'size_t len;')
+ end
result[#result + 1] = line
end
end