1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
From: James McCoy <jamessan@jamessan.com>
Date: Sat, 6 Sep 2025 19:58:31 -0400
Subject: fix(tests): ignore vector math types
As noted in #34908, the arm unittests fail due to unrecognized types:
ERROR test/unit/testutil.lua @ 802: Expressions parser works with &opt
test/unit/testutil.lua:774: test/unit/testutil.lua:758: (string) '
test/unit/testutil.lua:288: declaration specifier expected near '__SVFloat32_t''
exit code: 256
After testing on Debian's arm64 porterbox, the unittests cleanly pass
when ignoring various types defined in
/usr/include/aarch64-linux-gnu/bits/math-vector.h
(cherry picked from commit e702f97518cd18fa57c50ee62fdc63ad887f006d)
---
test/unit/testutil.lua | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test/unit/testutil.lua b/test/unit/testutil.lua
index a38e602..c630ef7 100644
--- a/test/unit/testutil.lua
+++ b/test/unit/testutil.lua
@@ -141,6 +141,13 @@ local function filter_complex_blocks(body)
or string.find(line, '_Float')
or string.find(line, '__s128')
or string.find(line, '__u128')
+ or string.find(line, '__SVFloat32_t')
+ or string.find(line, '__SVFloat64_t')
+ or string.find(line, '__SVBool_t')
+ or string.find(line, '__f32x4_t')
+ or string.find(line, '__f64x2_t')
+ or string.find(line, '__sv_f32_t')
+ or string.find(line, '__sv_f64_t')
or string.find(line, 'msgpack_zone_push_finalizer')
or string.find(line, 'msgpack_unpacker_reserve_buffer')
or string.find(line, 'value_init_')
|