mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/dl/test_dl2.rb (TestDL#test_sin): math functions do not
work on x86_64 due to the design of DL2. * test/dl/test_func.rb (DL::TestFunc#test_{sinf,sin): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2418e5ca83
commit
59064a75b8
3 changed files with 10 additions and 0 deletions
|
@ -95,6 +95,7 @@ class TestDL < TestBase
|
|||
end
|
||||
|
||||
def test_sin
|
||||
return if /x86_64/ =~ RUBY_PLATFORM
|
||||
pi_2 = Math::PI/2
|
||||
cfunc = Function.new(CFunc.new(@libm['sin'], TYPE_DOUBLE, 'sin'),
|
||||
[TYPE_DOUBLE])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue