summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKamil Aronowski <kamil.aronowski@yahoo.com>2023-05-08 09:28:24 +0200
committerPeter Jones <pjones@redhat.com>2023-06-21 14:18:25 -0400
commitf7a4338f1b5ef03dca83ce44075e9d6e5897e037 (patch)
tree7e149cb2222ea28cff5b35d292170178f7f20430 /include
parenta8b0b600ddcf02605da8582b4eac1932a3bb13fa (diff)
downloadefi-boot-shim-f7a4338f1b5ef03dca83ce44075e9d6e5897e037.tar.gz
efi-boot-shim-f7a4338f1b5ef03dca83ce44075e9d6e5897e037.zip
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 <kamil.aronowski@yahoo.com>
Diffstat (limited to 'include')
-rw-r--r--include/console.h2
1 files changed, 2 insertions, 0 deletions
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 */