summaryrefslogtreecommitdiff
path: root/tests/unix/ffi_float.py
AgeCommit message (Collapse)Author
2024-01-22tests: Move port-specific test directories into tests/ports/ directory.Damien George
To keep them all together, mirroring the top-level directory structure. Signed-off-by: Damien George <damien@micropython.org>
2021-05-06unix/modffi: Use a union for passing/returning FFI values.Damien George
This fixes a bug where double arguments on a 32-bit architecture would not be passed correctly because they only had 4 bytes of storage (not 8). It also fixes a compiler warning/error in return_ffi_value on certian architectures: array subscript 'double[0]' is partly outside array bounds of 'ffi_arg[1]' {aka 'long unsigned int[1]'}. Fixes issue #7064. Signed-off-by: Damien George <damien@micropython.org>
2020-03-30tests: Format all Python code with black, except tests in basics subdir.David Lechner
This adds the Python files in the tests/ directory to be formatted with ./tools/codeformat.py. The basics/ subdirectory is excluded for now so we aren't changing too much at once. In a few places `# fmt: off`/`# fmt: on` was used where the code had special formatting for readability or where the test was actually testing the specific formatting.
2018-10-05tests/unix/ffi_float: Skip if strtof() is not available.Paul Sokolovsky
As the case for e.g. Android's Bionic Libc.
2017-06-10tests: Convert remaining "sys.exit()" to "raise SystemExit".Paul Sokolovsky
2015-08-29tests/ffi_float: Split tgammaf() testcase to a separate test.Paul Sokolovsky
Some libc's may implement tgammaf as a header macro using tgamma(), so don't assume it'll be in the library.
2015-08-25tests: For unix ffi float test, add libm.so.6 to library search list.Damien George
Latest Arch Linux doesn't have libm.so as a proper shared object and so we need to load libm.so.6.
2015-04-28unix/modffi: Support passing float/double args.Damien George
2014-10-06tests: Skip ffi_float.py if module ffi is not available.Paul Sokolovsky
2014-09-25Change allows tests/unix/ffi_float.py to pass on OSXblmorris
2014-09-06unix: Don't use -Wno-error=cpp or #warning; fix strict alias warning.Damien George
For the sake of older versions of gcc (and other compilers), don't use the #warning CPP directive, nor the -Wno-error=cpp option. Also, fix a strict alias warning in modffi.c for older compilers, and add a test for ffi module. Addresses issue #847.