diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-22 13:04:06 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-22 13:04:06 +0000 |
commit | a641003f66c700de9a967a58e33b53cc7cd46a02 (patch) | |
tree | 4e18e039abf396290dad22a6c79ba675c4dfdb92 /test/ruby/test_process.rb | |
parent | 3873e09cad296e374d967d00bc8e2e6e8ec60323 (diff) | |
download | ruby-a641003f66c700de9a967a58e33b53cc7cd46a02.tar.gz |
* process.c (rb_clock_gettime): Strip "s" from unit names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 2e7f3a45f3..7ea0f3bbde 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1661,9 +1661,9 @@ EOS end if windows? def test_clock_gettime - t1 = Process.clock_gettime(Process::CLOCK_REALTIME, :nanoseconds) + t1 = Process.clock_gettime(Process::CLOCK_REALTIME, :nanosecond) t2 = Time.now; t2 = t2.tv_sec * 1000000000 + t2.tv_nsec - t3 = Process.clock_gettime(Process::CLOCK_REALTIME, :nanoseconds) + t3 = Process.clock_gettime(Process::CLOCK_REALTIME, :nanosecond) assert_operator(t1, :<=, t2) assert_operator(t2, :<=, t3) assert_raise(Errno::EINVAL) { Process.clock_gettime(:foo) } |