summaryrefslogtreecommitdiffstatshomepage
path: root/tests/unix/ffi_float.py
Commit message (Collapse)AuthorAge
* tests: Move port-specific test directories into tests/ports/ directory.Damien George2024-01-22
| | | | | | To keep them all together, mirroring the top-level directory structure. Signed-off-by: Damien George <damien@micropython.org>
* unix/modffi: Use a union for passing/returning FFI values.Damien George2021-05-06
| | | | | | | | | | | | 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>
* tests: Format all Python code with black, except tests in basics subdir.David Lechner2020-03-30
| | | | | | | | | | 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.
* tests/unix/ffi_float: Skip if strtof() is not available.Paul Sokolovsky2018-10-05
| | | | As the case for e.g. Android's Bionic Libc.
* tests: Convert remaining "sys.exit()" to "raise SystemExit".Paul Sokolovsky2017-06-10
|
* tests/ffi_float: Split tgammaf() testcase to a separate test.Paul Sokolovsky2015-08-29
| | | | | Some libc's may implement tgammaf as a header macro using tgamma(), so don't assume it'll be in the library.
* tests: For unix ffi float test, add libm.so.6 to library search list.Damien George2015-08-25
| | | | | Latest Arch Linux doesn't have libm.so as a proper shared object and so we need to load libm.so.6.
* unix/modffi: Support passing float/double args.Damien George2015-04-28
|
* tests: Skip ffi_float.py if module ffi is not available.Paul Sokolovsky2014-10-06
|
* Change allows tests/unix/ffi_float.py to pass on OSXblmorris2014-09-25
|
* unix: Don't use -Wno-error=cpp or #warning; fix strict alias warning.Damien George2014-09-06
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.