diff --git a/src/utils/os_unix.c b/src/utils/os_unix.c index d103ae832..d5870669a 100644 --- a/src/utils/os_unix.c +++ b/src/utils/os_unix.c @@ -709,6 +709,13 @@ int testing_get_fail_pattern(bool is_alloc, char *buf, size_t buflen) #endif /* WPA_TRACE_BFD */ } +#else /* defined(WPA_TRACE_BFD) && defined(CONFIG_TESTING_OPTIONS) */ + +static inline int testing_test_fail(const char *tag, bool is_alloc) +{ + return 0; +} + #endif void * os_malloc(size_t size)