Page tree

Skip to end of metadata
Go to start of metadata

Utility macros and functions from C++test runtime library to be used in the test case and stub code.

MacroDefinition
CPPTEST_BREAK()Breaks the current test case execution with failed status.
const char* cpptestFormat(const char* format, ...);Function used to format text in a printf-like way. The allocated buffer will be freed by the C++test runtime at the end of the current test case execution.
const char* cpptestFormatBuffer(char* buffer, const char* format, ...)Function used to format text in a printf-like way. Text will be formatted in the buffer passed as a parameter.
void* cpptestMalloc(size_t size)Returns allocated buffer of the given size. To free it, use the cpptestFree() function.
void cpptestFree(void* ptr)Frees memory buffer allocated with cpptestMalloc() function.
  • No labels