mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-23 23:30:02 +00:00
The tests have inadvertent dependencies on each other so let's avoid those by changing to a system that returns a null-terminated list of test functions and our test runner iterates over those and forks off one process per function.
14 lines
286 B
C
14 lines
286 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(const testfunc_t* (*func)(void), const char *funcname);
|
|
|
|
#endif /* TESTS_COMMON_H */
|