summaryrefslogtreecommitdiff
path: root/test/ruby/test_process.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r--test/ruby/test_process.rb4
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) }