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.
modjni
Damien George 2015-08-25 18:14:53 +01:00
parent 5ab0a4a671
commit 936e25b164
1 changed files with 1 additions and 1 deletions

View File

@ -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):