mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 07:00:03 +01: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.
13 lines
286 B
C
13 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 */
|