CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
Loading...
Searching...
No Matches
test_unit_logger.c File Reference

This file contains a unit test for the CdiList functionality. More...

#include "cdi_core_api.h"
#include "cdi_logger_api.h"

Macros

#define RUN_TEST(test_func)
 Helper macro.
 

Functions

static CdiReturnStatus TestMultilineLoggerDisabled (void)
 Test case for multiline logger API when a component is disabled.
 
CdiReturnStatus TestUnitLogger (void)
 External declarations.
 

Detailed Description

This file contains a unit test for the CdiList functionality.

Macro Definition Documentation

◆ RUN_TEST

#define RUN_TEST ( test_func)
Value:
do { \
CdiReturnStatus test_rs = test_func(); \
if (kCdiStatusOk != test_rs) { \
CDI_LOG_THREAD(kLogError, "Logger test "#test_func" failed [%s].", CdiCoreStatusToString(test_rs)); \
} } while (false) \
CdiReturnStatus
Values used for API function return codes.
Definition cdi_core_api.h:189
@ kCdiStatusFatal
An unspecified, unrecoverable error occurred.
Definition cdi_core_api.h:194
@ kCdiStatusOk
The API function succeeded.
Definition cdi_core_api.h:191
CDI_INTERFACE const char * CdiCoreStatusToString(CdiReturnStatus status)
Definition cdi_core_api.c:184
@ kLogError
Errors to the user.
Definition cdi_log_enums.h:53

Helper macro.