From ec21e8438c5dcc5d77d8f353e66108aff524e987 Mon Sep 17 00:00:00 2001
From: usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Wed, 19 May 2010 09:07:27 +0000
Subject: [PATCH] * 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
---
 test/dl/test_func.rb | 8 ++++++--
 1 file 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