File: tests-common.h

package info (click to toggle)
xwayland 2%3A24.1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,656 kB
  • sloc: ansic: 202,932; xml: 6,578; sh: 208; makefile: 21
file content (13 lines) | stat: -rw-r--r-- 286 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#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 */