Fix tests

This commit is contained in:
Mathieu Maret 2024-03-13 22:02:04 +01:00 committed by Mathieu Maret
parent d6ab0da231
commit 778999c8f4

View File

@ -306,9 +306,8 @@ void sleepThread(void *arg)
} }
unsigned long ellapsedTime = jiffies_to_msecs(jiffies - initialJiffies); unsigned long ellapsedTime = jiffies_to_msecs(jiffies - initialJiffies);
assertmsg(ellapsedTime >= 500 && ellapsedTime < 510, "ellapsedTime %lu\n", ellapsedTime); assertmsg(ellapsedTime >= 500 && ellapsedTime < 510, "ellapsedTime %lu\n", ellapsedTime);
threadMsleep(0); threadMsleep(ULONG_MAX);
printf("I should never be showed\n"); assert(0);
assert(1);
} }
struct mutex mutexTest; struct mutex mutexTest;