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>
17 lines
248 B
Python
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"),
|
|
]
|
|
)
|