summaryrefslogtreecommitdiff
path: root/test/dl
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-19 09:07:27 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-19 09:07:27 +0000
commitec21e8438c5dcc5d77d8f353e66108aff524e987 (patch)
treef1cc68426a27c76101a9c63ee3336f17daf35d68 /test/dl
parent55400cb80f0d965e8e0b20440472e876e6fa398d (diff)
* test/dl/test_func.rb (test_sinf): sinf() doesn't exist in the standard of C.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dl')
-rw-r--r--test/dl/test_func.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/dl/test_func.rb b/test/dl/test_func.rb
index 3900af3..ab8353b 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