lib: Add argc/argv to igt_simple_init

There's a pile of ideas around to add generally useful options like
--debug to all igt tests. Or unify the runtime behaviour between
simple and subtest tests a bit more.

The first step to get there is to add argc/argv to igt_simple_init so
that we can get at the argument list.

Cc: Tim Gore <tim.gore@intel.com>
Cc: Thomas Wood <thomas.wood@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2014-07-14 14:42:23 +02:00
parent c7be53c7cb
commit 5a98fe9d4a
18 changed files with 21 additions and 24 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ int main(int argc, char *argv[])
{
int i;
igt_simple_init();
igt_simple_init(argc, argv);
fd = drm_open_any_render();
devid = intel_get_drm_devid(fd);