Skip to content

Commit 936e25b

Browse files
committed
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.
1 parent 5ab0a4a commit 936e25b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unix/ffi_float.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def ffi_open(names):
2626
print('%.6f' % strtod('1.23', None))
2727

2828
# test passing double and float args
29-
libm = ffi_open(('libm.so', 'libc.so.0', 'libc.so.6', 'libc.dylib'))
29+
libm = ffi_open(('libm.so', 'libm.so.6', 'libc.so.0', 'libc.so.6', 'libc.dylib'))
3030
tgamma = libm.func('d', 'tgamma', 'd')
3131
tgammaf = libm.func('f', 'tgammaf', 'f')
3232
for fun in (tgamma, tgammaf):

0 commit comments

Comments
 (0)