test_ioctl_linux fails on PPC and PPC64
The above mentioned test case fails on PPC and PPC64. The test case was introduced in 33716. It fails with Ruby 2.0 and Ruby 1.9.3 as well.
#5 [ruby-core:51562] Updated by vo.x (Vit Ondruch) almost 5 years ago
This is the output:
And here is my testing IRB session:
irb(main):002:1* entropy_count = ""
irb(main):003:1> # get entropy count
irb(main):004:1* f1.ioctl(0x80045200, entropy_count)
Errno::EINVAL: Invalid argument - /dev/urandom
ioctl'block in irb_binding'
irb(main):007:1* entropy_count = ""
irb(main):008:1> f1.ioctl(0x40045200, entropy_count)
And similar script run with strace: http://paste.fedoraproject.org/2489/
#7 Updated by kosaki (Motohiro KOSAKI) almost 5 years ago
- Status changed from Feedback to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r38941.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- test/ruby/test_io.rb (test_ioctl_linux): skip if a platform is not x86 because linux ioctl request number depend on cpu arch. At least, alpha, mips, sparc and ppc have a different number. [Bug #7718]