mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
tests: For unix ffi float test, add libm.so.6 to library search list.
Latest Arch Linux doesn't have libm.so as a proper shared object and so we need to load libm.so.6.
This commit is contained in:
@@ -26,7 +26,7 @@ strtod = libc.func("d", "strtod", "sp")
|
||||
print('%.6f' % strtod('1.23', None))
|
||||
|
||||
# test passing double and float args
|
||||
libm = ffi_open(('libm.so', 'libc.so.0', 'libc.so.6', 'libc.dylib'))
|
||||
libm = ffi_open(('libm.so', 'libm.so.6', 'libc.so.0', 'libc.so.6', 'libc.dylib'))
|
||||
tgamma = libm.func('d', 'tgamma', 'd')
|
||||
tgammaf = libm.func('f', 'tgammaf', 'f')
|
||||
for fun in (tgamma, tgammaf):
|
||||
|
||||
Reference in New Issue
Block a user