ruby-changes:15947
From: usa <ko1@a...>
Date: Wed, 19 May 2010 18:07:37 +0900 (JST)
Subject: [ruby-changes:15947] Ruby:r27888 (trunk): * test/dl/test_func.rb (test_sinf): sinf() doesn't exist in the standard of C.
usa 2010-05-19 18:07:27 +0900 (Wed, 19 May 2010) New Revision: 27888 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27888 Log: * test/dl/test_func.rb (test_sinf): sinf() doesn't exist in the standard of C. Modified files: trunk/test/dl/test_func.rb Index: test/dl/test_func.rb =================================================================== --- test/dl/test_func.rb (revision 27887) +++ test/dl/test_func.rb (revision 27888) @@ -22,8 +22,12 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/