mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
14 lines
358 B
C
14 lines
358 B
C
#ifndef _TEST_COMMON_H_
|
|
#define _TEST_COMMON_H_
|
|
|
|
#define DEFTESTCASE(NAME) \
|
|
TCase *tc_##NAME = tcase_create(#NAME); \
|
|
tcase_add_test(tc_##NAME, NAME##Test); \
|
|
suite_add_tcase(s, tc_##NAME);
|
|
|
|
#define DEFTESTCASE_SLOW(NAME, TIMEOUT) \
|
|
DEFTESTCASE(NAME) \
|
|
tcase_set_timeout(tc_##NAME, TIMEOUT);
|
|
|
|
#endif // _TEST_COMMON_H_
|