mirror of https://github.com/qTox/qTox.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
356 B
13 lines
356 B
#ifndef _TEST_UTILS_H_ |
|
#define _TEST_UTILS_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_UTILS_H_
|
|
|