diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-01-24 06:41:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-01-24 06:41:55 +0000 |
commit | 116f7e60277d19a4e57f129a2079425e088d2d06 (patch) | |
tree | 49b8f86832ac77b836753e30b25e6da8813d7022 /test | |
parent | 216555321ef0adce88946c12a75605d0c6d776b8 (diff) | |
download | ruby-116f7e60277d19a4e57f129a2079425e088d2d06.tar.gz |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 5509364e60..a99e979e88 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1777,6 +1777,8 @@ EOS 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 |