From f7a4338f1b5ef03dca83ce44075e9d6e5897e037 Mon Sep 17 00:00:00 2001 From: Kamil Aronowski Date: Mon, 8 May 2023 09:28:24 +0200 Subject: Skip testing msleep() In preparation for renaming msleep() to usleep(), in some cases tests were failing due to a mismatch between our declaration of the usleep() function and what is being provided by unistd.h. This change simply makes our function declared only when not in a unit test environment. Signed-off-by: Kamil Aronowski --- lib/console.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/console.c b/lib/console.c index 6bbb8a7c..c7ca3bc2 100644 --- a/lib/console.c +++ b/lib/console.c @@ -743,11 +743,13 @@ setup_verbosity(VOID) setup_console(-1); } +#ifndef SHIM_UNIT_TEST VOID msleep(unsigned long msecs) { BS->Stall(msecs); } +#endif /* This is used in various things to determine if we should print to the * console */ -- cgit v1.2.3