Project

General

Profile

Actions

Bug #9008

closed

TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM

Added by vo.x (Vit Ondruch) over 10 years ago. Updated about 10 years ago.

Status:
Rejected
Target version:
-
ruby -v:
ruby -v: ruby 2.1.0dev (2013-09-22 trunk 43011) [armv7hl-linux]
[ruby-core:57771]

Description

=begin
I observe following two errors on ARM Building Ruby for Fedora Rawhide. It seems that (({:CLOCK_REALTIME_ALARM})) and (({:CLOCK_BOOTTIME_ALARM})) are not supported there. The error message is confusing, though :/

  1. Error:
    TestProcess#test_clock_getres_constants:
    Errno::E524: Unknown error 524 - clock_getres
    /builddir/build/BUILD/ruby-2.1.0-preview1/test/ruby/test_process.rb:1752:in clock_getres' /builddir/build/BUILD/ruby-2.1.0-preview1/test/ruby/test_process.rb:1752:in block in test_clock_getres_constants'
    /builddir/build/BUILD/ruby-2.1.0-preview1/test/ruby/test_process.rb:1749:in each' /builddir/build/BUILD/ruby-2.1.0-preview1/test/ruby/test_process.rb:1749:in test_clock_getres_constants'
  2. Error:
    TestProcess#test_clock_gettime_constants:
    Errno::E524: Unknown error 524 - clock_gettime
    /builddir/build/BUILD/ruby-2.1.0-preview1/test/ruby/test_process.rb:1676:in clock_gettime' /builddir/build/BUILD/ruby-2.1.0-preview1/test/ruby/test_process.rb:1676:in block in test_clock_gettime_constants'
    /builddir/build/BUILD/ruby-2.1.0-preview1/test/ruby/test_process.rb:1673:in each' /builddir/build/BUILD/ruby-2.1.0-preview1/test/ruby/test_process.rb:1673:in test_clock_gettime_constants'

I am going to resolve the issue temporary by applying

sed -i '/Process.constants.grep(/\ACLOCK_/).each {|n|/ s/$/\n next if [:CLOCK_REALTIME_ALARM, :CLOCK_BOOTTIME_ALARM].include? n/'
test/ruby/test_process.rb

on ARM platform, but is there some better solution?
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0