diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-02-20 15:24:47 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-02-21 00:41:54 +0100 |
commit | 3bbdb535438951ffb8eac78abbf4152dcfa2185d (patch) | |
tree | ee334b938eacaaf28f6776c66c937a6bd1f3eccb /lib/tests/igt_fork.c | |
parent | ee6e006202a50c5aef373c0b075027ed7177935a (diff) |
lib/tests: Use ARRAY_SIZE
Except in igt_simulation.c where we use tricks and intentionally only
want part of the array in some cases.
Suggested-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'lib/tests/igt_fork.c')
-rw-r--r-- | lib/tests/igt_fork.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tests/igt_fork.c b/lib/tests/igt_fork.c index 10003120..7e8b4f9b 100644 --- a/lib/tests/igt_fork.c +++ b/lib/tests/igt_fork.c @@ -30,6 +30,7 @@ #include <sys/wait.h> #include "igt_core.h" +#include "drmtest.h" #include "igt_tests_common.h" @@ -93,7 +94,7 @@ static int do_fork(void (*test_to_run)(void)) case -1: internal_assert(0); case 0: - argc = 1; + argc = ARRAY_SIZE(argv_run); igt_simple_init(argc, argv_run); test_to_run(); igt_exit(); |