Skip to content

Commit 15c9619

Browse files
committed
Process.clock_getres(:GETRUSAGE_BASED_CLOCK_PROCESS_CPUTIME_ID) does not work on Windows on MRI
1 parent f49225f commit 15c9619

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/process/clock_getres_spec.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@
3737
Process.clock_getres(:TIME_BASED_CLOCK_REALTIME, :nanosecond).should == 1_000_000_000
3838
end
3939

40-
it "with :GETRUSAGE_BASED_CLOCK_PROCESS_CPUTIME_ID reports 1 microsecond" do
41-
Process.clock_getres(:GETRUSAGE_BASED_CLOCK_PROCESS_CPUTIME_ID, :nanosecond).should == 1_000
40+
platform_is_not :windows do
41+
it "with :GETRUSAGE_BASED_CLOCK_PROCESS_CPUTIME_ID reports 1 microsecond" do
42+
Process.clock_getres(:GETRUSAGE_BASED_CLOCK_PROCESS_CPUTIME_ID, :nanosecond).should == 1_000
43+
end
4244
end
4345

4446
# These are observed

0 commit comments

Comments
 (0)