Logo
Explore Help
Register Sign In
XLibre/xserver
1
1
Fork 0
You've already forked xserver
mirror of https://github.com/X11Libre/xserver.git synced 2026-04-14 17:18:09 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
dfd51be3ca2a244bbca27a95310b60e0c14940df
xserver/test/tests-common.h

13 lines
271 B
C
Raw Normal View History

tests: Convert test/xi1/ to single binary Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-12 13:21:08 +05:00
#ifndef TESTS_COMMON_H
#define TESTS_COMMON_H
tests: Convert test/ to single binary Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-12 13:21:10 +05:00
#include "tests.h"
Use ARRAY_SIZE all over the tree Roundhouse kick replacing the various (sizeof(foo)/sizeof(foo[0])) with the ARRAY_SIZE macro from dix.h when possible. A semantic patch for coccinelle has been used first. Additionally, a few macros have been inlined as they had only one or two users. Signed-off-by: Daniel Martin <consume.noise@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2017-10-27 16:11:56 +02:00
#define ARRAY_SIZE(a) (sizeof((a)) / sizeof((a)[0]))
tests: Convert test/xi1/ to single binary Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-12 13:21:08 +05:00
#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 */
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 53ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API