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 --- include/console.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/console.h b/include/console.h index 0c4a5137..2a29c2dc 100644 --- a/include/console.h +++ b/include/console.h @@ -122,7 +122,9 @@ extern EFI_STATUS EFIAPI vdprint_(const CHAR16 *fmt, const char *file, int line, extern EFI_STATUS print_crypto_errors(EFI_STATUS rc, char *file, const char *func, int line); #define crypterr(rc) print_crypto_errors((rc), __FILE__, __func__, __LINE__) +#ifndef SHIM_UNIT_TEST extern VOID msleep(unsigned long msecs); +#endif /* This is used in various things to determine if we should print to the * console */ -- cgit v1.2.3