Bug #3815
closeddl2 - DL::Function TYPE_DOUBLE packing/unpacking problem
Description
=begin
assert(64bit)
assert(no_fiddle)
0% ruby -v
ruby 1.9.3dev (2010-09-10 trunk 29209) [x86_64-linux]
0% ruby test/runner.rb test/dl
Test run options: --seed 53947
Loaded suite test/runner
Started
.........................................................F.........FF.........................................
Finished in 0.183267 seconds.
-
Failure:
test_sin(DL::TestDL) [/home/nahi/svn/ruby/current/test/dl/test_dl2.rb:102]:
<1.0> expected but was
<1.38523885234213e-309>. -
Failure:
test_sin(DL::TestFunc) [/home/nahi/svn/ruby/current/test/dl/test_func.rb:37]:
Expected 1.0 - 1.38523885234213e-309 (1.0) to be < 0.0001. -
Failure:
test_sinf(DL::TestFunc) [/home/nahi/svn/ruby/current/test/dl/test_func.rb:31]:
Expected 1.0 - 0.0 (1.0) to be < 0.0001.
110 tests, 200 assertions, 3 failures, 0 errors, 0 skips
Test run options: --seed 53947
=end
Updated by naruse (Yui NARUSE) over 13 years ago
- Status changed from Open to Rejected
=begin
WONTFIX.
Updated by nahi (Hiroshi Nakamura) over 13 years ago
- Category changed from ext to test
- Status changed from Rejected to Open
- Priority changed from Normal to 3
=begin
Thank you! Passing a double value to C function does not work on x86_64, right?
I reopen this ticket since we'd better add some tweaks.
Document, adding warnings, avoid tests, etc.
=end
Updated by naruse (Yui NARUSE) over 13 years ago
=begin
Use fiddle; fiddle is added for this problem.
=end
Updated by shyouhei (Shyouhei Urabe) over 13 years ago
- Status changed from Open to Rejected
=begin
=end