diff options
Diffstat (limited to 'test/dl')
-rw-r--r-- | test/dl/test_func.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/dl/test_func.rb b/test/dl/test_func.rb index 3900af3d5f..ab8353bd76 100644 --- a/test/dl/test_func.rb +++ b/test/dl/test_func.rb @@ -22,8 +22,12 @@ module DL end def test_sinf - f = Function.new(CFunc.new(@libm['sinf'], TYPE_FLOAT, 'sinf'), - [TYPE_FLOAT]) + begin + f = Function.new(CFunc.new(@libm['sinf'], TYPE_FLOAT, 'sinf'), + [TYPE_FLOAT]) + rescue DL::DLError + skip "libm may not have sinf()" + end assert_in_delta 1.0, f.call(90 * Math::PI / 180), 0.0001 end |