summaryrefslogtreecommitdiff
path: root/lib
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 /lib
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 'lib')
-rw-r--r--lib/console.c2
1 files changed, 2 insertions, 0 deletions
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 */