ruby-changes:32619
From: nobu <ko1@a...>
Date: Fri, 24 Jan 2014 15:42:05 +0900 (JST)
Subject: [ruby-changes:32619] nobu:r44698 (trunk): test_process.rb: clock_getres may not supported
nobu 2014-01-24 15:41:55 +0900 (Fri, 24 Jan 2014) New Revision: 44698 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44698 Log: test_process.rb: clock_getres may not supported * test/ruby/test_process.rb (test_clock_getres): ignore if clock_getres is no supported, e.g., on old Linux. Modified files: trunk/test/ruby/test_process.rb Index: test/ruby/test_process.rb =================================================================== --- test/ruby/test_process.rb (revision 44697) +++ test/ruby/test_process.rb (revision 44698) @@ -1777,6 +1777,8 @@ EOS https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1777 def test_clock_getres r = Process.clock_getres(Process::CLOCK_REALTIME, :nanosecond) + rescue Errno::EINVAL + else assert_kind_of(Integer, r) assert_raise(Errno::EINVAL) { Process.clock_getres(:foo) } end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/