aboutsummaryrefslogtreecommitdiff
path: root/test/unit/testutil.lua
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-09-25 16:07:37 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-10-22 21:20:11 +0200
commit4c25e60767508a3f8bc0631d280407a08f24a67e (patch)
tree1de749c20df1b169557efd44373f4764f511bca1 /test/unit/testutil.lua
parent07b4cb6ada2da108bbf8277bec63068234ceaa67 (diff)
downloadrneovim-4c25e60767508a3f8bc0631d280407a08f24a67e.tar.gz
rneovim-4c25e60767508a3f8bc0631d280407a08f24a67e.tar.bz2
rneovim-4c25e60767508a3f8bc0631d280407a08f24a67e.zip
test: port libvterm unit test to neovim test suite
These were imported from the v0.3.3 git tag https://github.com/neovim/libvterm/tree/v0.3.3 and not the latest commit. This is for compatibility reasons as the libvterm code was imported from v0.3.3.
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