From a5a3ba276e098a5fe69d8c750e8db7ae087147b3 Mon Sep 17 00:00:00 2001 From: sasan-golchin <ahmad.golchin@mail.polimi.it> Date: Fri, 11 Nov 2016 14:27:44 +0100 Subject: [PATCH] testsuite fixed for EDF scheduler --- miosix/_tools/testsuite/testsuite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miosix/_tools/testsuite/testsuite.cpp b/miosix/_tools/testsuite/testsuite.cpp index 5b2726fc..5abbc783 100644 --- a/miosix/_tools/testsuite/testsuite.cpp +++ b/miosix/_tools/testsuite/testsuite.cpp @@ -910,7 +910,7 @@ static void test_3() //tick is in number of ns passed, wakeup time should not differ by > 1ms Thread::nanoSleepUntil(tick); long long t2 = getTime(); - if(tick/1000000!=t2/1000000) fail("Thread::sleepUntil()"); + if((t2-tick)/1000000>0) fail("Thread::sleepUntil()"); tick+=period; } pass(); -- GitLab