diff --git a/tool/lib/core_assertions.rb b/tool/lib/core_assertions.rb index 5777d79741..7845d23729 100644 --- a/tool/lib/core_assertions.rb +++ b/tool/lib/core_assertions.rb @@ -731,8 +731,7 @@ eom CLOCK_MONOTONIC ].find do |clk| if Process.const_defined?(clk) - clk = clk.to_sym - begin + [clk.to_sym, Process.const_get(clk)].find do |clk| Process.clock_gettime(clk) rescue # Constants may be defined but not implemented, e.g., mingw.