From 091ab15912e012d879d08429290d02e7b6c69b6d Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Fri, 28 Feb 2020 17:53:17 +0100 Subject: [PATCH] sys/test_utils/interactive_sync: allow module disabling If the header file is included test_utils_interactive_sync() will be defined as an empty function when the module is not used, e.g. added to DISABLE_MODULES in tests/* --- sys/include/test_utils/interactive_sync.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/include/test_utils/interactive_sync.h b/sys/include/test_utils/interactive_sync.h index b27a571f2d..d5bd8aa015 100644 --- a/sys/include/test_utils/interactive_sync.h +++ b/sys/include/test_utils/interactive_sync.h @@ -32,7 +32,11 @@ extern "C" { * @details Wait for a 's' character to return * */ +#ifdef MODULE_TEST_UTILS_INTERACTIVE_SYNC void test_utils_interactive_sync(void); +#else +static inline void test_utils_interactive_sync(void) {} +#endif #ifdef __cplusplus