You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xserver/test/tests-common.h

13 lines
271 B
C

#ifndef TESTS_COMMON_H
#define TESTS_COMMON_H
#include "tests.h"
#define ARRAY_SIZE(a) (sizeof((a)) / sizeof((a)[0]))
#define run_test(func) run_test_in_child(func, #func)
void run_test_in_child(int (*func)(void), const char *funcname);
#endif /* TESTS_COMMON_H */