summaryrefslogtreecommitdiff
path: root/lib/igt_core.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-10-27 11:32:47 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-11-07 11:20:28 +0000
commit721d8747e3a2ae78b4fad33d32e4b4796c90a2af (patch)
tree91564709e30c499efe4fea3ab6c824c19a09ab9e /lib/igt_core.h
parent874a2072251d94f7e6c6565932cc36b7df2dfc6b (diff)
igt: Add a test for reordering execbufs
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r--lib/igt_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h
index 03be757c..dd7fc123 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -231,6 +231,7 @@ void __igt_subtest_group_restore(int);
#define igt_main \
static void igt_tokencat(__real_main, __LINE__)(void); \
int main(int argc, char **argv) { \
+ sync(); \
igt_subtest_init_parse_opts(&argc, argv, NULL, NULL, NULL, \
NULL, NULL); \
igt_tokencat(__real_main, __LINE__)(); \
@@ -271,6 +272,7 @@ void igt_simple_init_parse_opts(int *argc, char **argv,
#define igt_simple_main \
static void igt_tokencat(__real_main, __LINE__)(void); \
int main(int argc, char **argv) { \
+ sync(); \
igt_simple_init_parse_opts(&argc, argv, NULL, NULL, NULL, \
NULL, NULL); \
igt_tokencat(__real_main, __LINE__)(); \