XMMS2
Macros | Functions
xcu.h File Reference
#include "CUnit/Basic.h"

Macros

#define ST_NE(x)   #x
 
#define ST(x)   ST_NE(x)
 
#define CASE(name)
 
#define SETUP(name)
 
#define CLEANUP(name)   static int __testsuite_cleanup (void)
 

Functions

int xcu_pre_case (const char *name)
 
void xcu_post_case (const char *name)
 

Macro Definition Documentation

#define CASE (   name)
Value:
static void __testcase_##name (void); \
void __testcase_wrapper_##name (void); \
void __testcase_wrapper_##name (void) { \
if (xcu_pre_case (ST (name))) { \
__testsuite_setup (); \
__testcase_##name (); \
__testsuite_cleanup (); \
} \
} \
static void __testcase_##name (void)
#define CLEANUP (   name)    static int __testsuite_cleanup (void)
#define SETUP (   name)
Value:
static int __testsuite_setup (void); \
static int __testsuite_cleanup (void); \
static int __testsuite_setup (void)
#define ST (   x)    ST_NE(x)
#define ST_NE (   x)    #x

Function Documentation

void xcu_post_case ( const char *  name)
int xcu_pre_case ( const char *  name)