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:
parent
5ab0a4a671
commit
936e25b164
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue