Commit 936e25b1 authored by Damien George's avatar Damien George
Browse files

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.
parent 5ab0a4a6
......@@ -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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment