summaryrefslogtreecommitdiff
path: root/test/dl/test_func.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/dl/test_func.rb')
-rw-r--r--test/dl/test_func.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/dl/test_func.rb b/test/dl/test_func.rb
index d438f94506..27bf7daf7f 100644
--- a/test/dl/test_func.rb
+++ b/test/dl/test_func.rb
@@ -22,6 +22,7 @@ module DL
end
def test_sinf
+ return if /x86_64/ =~ RUBY_PLATFORM
begin
f = Function.new(CFunc.new(@libm['sinf'], TYPE_FLOAT, 'sinf'),
[TYPE_FLOAT])
@@ -32,6 +33,7 @@ module DL
end
def test_sin
+ return if /x86_64/ =~ RUBY_PLATFORM
f = Function.new(CFunc.new(@libm['sin'], TYPE_DOUBLE, 'sin'),
[TYPE_DOUBLE])
assert_in_delta 1.0, f.call(90 * Math::PI / 180), 0.0001