Skip Process#clock_getres specs on Android

... just like AIX and OpenBSD.
This commit is contained in:
Yusuke Endoh 2020-04-19 23:15:43 +09:00
Родитель 5a8960b4fe
Коммит 2af4c1fc5b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -19,13 +19,13 @@ describe "Process.clock_getres" do
# These are observed
platform_is_not :solaris, :aix, :openbsd do
platform_is_not :solaris, :aix, :openbsd, :android do
it "with Process::CLOCK_REALTIME reports at least 1 microsecond" do
Process.clock_getres(Process::CLOCK_REALTIME, :nanosecond).should <= 1_000
end
end
platform_is_not :aix, :openbsd do
platform_is_not :aix, :openbsd, :android do
it "with Process::CLOCK_MONOTONIC reports at least 1 microsecond" do
Process.clock_getres(Process::CLOCK_MONOTONIC, :nanosecond).should <= 1_000
end