From 5014d1330910bb00f7ee32e8435177114e8d9ba1 Mon Sep 17 00:00:00 2001 From: Martin Nowak Date: Sat, 22 Aug 2015 16:07:40 +0200 Subject: [PATCH] ignore unsupported BOOTTIME in unittest --- src/core/time.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/time.d b/src/core/time.d index ce69579cf61..5319a12aee7 100644 --- a/src/core/time.d +++ b/src/core/time.d @@ -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) @@ -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)); }