lv_micropython/tests/ports/unix/ffi_int_long64.py
Michael Sawyer 230e521515 tests/ports/unix: Update and extend the modffi integer tests.
Added the "long" modffi tests. The tests could not be added to the existing
ffi_types test because two .exp files were required for the 32-bit and
64-bit results. Code common to both the ffi_types and type "long" tests was
factored into ffi_int_base. ffi_types was renamed to ffi_int_types to group
the related tests under the "ffi_int" prefix.

Signed-off-by: Michael Sawyer <mjfsawyer@gmail.com>
2024-09-19 15:00:17 +10:00

17 lines
248 B
Python

# test 64-bit long arguments and return types for ffi functions
import struct
import ffi_int_base
if struct.calcsize("l") != 8:
print("SKIP")
raise SystemExit
ffi_int_base.test(
[
("l", "fli"),
("L", "flu"),
]
)