diff options
author | Tim Gore <tim.gore@intel.com> | 2014-06-20 11:28:12 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2014-06-20 14:12:37 +0100 |
commit | 8abca6fd14d2b0e3bf25461199dd8519803f9518 (patch) | |
tree | 130fa18960608df54877e82b2cf041db4eaafcff /tests/gem_bad_batch.c | |
parent | 236d6bd2d36114fe402fe0e85d97b14cdf102963 (diff) |
intel-gpu-tools: add igt_core init func calls to some tests
igt-core.h/c provides some macros and initialisation
functions to support the tests but some of the single
tests do not use these. Modifying these tests to use
the igt_simple_main macro and igt_simple_init function
is the first step towards a consistent command line
across all tests.
Signed-off-by: Tim Gore <tim.gore@intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests/gem_bad_batch.c')
-rw-r--r-- | tests/gem_bad_batch.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/gem_bad_batch.c b/tests/gem_bad_batch.c index 33b3241f..7f92a939 100644 --- a/tests/gem_bad_batch.c +++ b/tests/gem_bad_batch.c @@ -56,7 +56,7 @@ bad_batch(void) intel_batchbuffer_flush(batch); } -int main(int argc, char **argv) +igt_simple_main { int fd; @@ -72,6 +72,4 @@ int main(int argc, char **argv) drm_intel_bufmgr_destroy(bufmgr); close(fd); - - return 0; } |