Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
ignore unsupported BOOTTIME in unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Aug 22, 2015
1 parent 8663f53 commit 5014d13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/time.d
Expand Up @@ -2721,6 +2721,8 @@ unittest
static if(typeStr != "second")
{
mixin("alias type = ClockType." ~ typeStr ~ ";");
version (linux) if (typeStr == "bootTime" && !MonoTimeImpl!type.ticksPerSecond)
continue;
auto v1 = MonoTimeImpl!type.currTime;
auto v2 = MonoTimeImpl!type.currTime;
scope(failure)
Expand All @@ -2738,6 +2740,8 @@ unittest
static if(otherStr != "second")
{
mixin("alias other = ClockType." ~ otherStr ~ ";");
version (linux) if (typeStr == "bootTime" && !MonoTimeImpl!other.ticksPerSecond)
continue;
static assert(is(typeof({auto o1 = MonTimeImpl!other.currTime; auto b = v1 <= o1;})) ==
is(type == other));
}
Expand Down

0 comments on commit 5014d13

Please sign in to comment.