summaryrefslogtreecommitdiff
path: root/lib/tests/igt_no_subtest.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2019-02-20 15:24:47 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2019-02-21 00:41:54 +0100
commit3bbdb535438951ffb8eac78abbf4152dcfa2185d (patch)
treeee334b938eacaaf28f6776c66c937a6bd1f3eccb /lib/tests/igt_no_subtest.c
parentee6e006202a50c5aef373c0b075027ed7177935a (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_no_subtest.c')
-rw-r--r--lib/tests/igt_no_subtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tests/igt_no_subtest.c b/lib/tests/igt_no_subtest.c
index 1ae62cfd..92e6c277 100644
--- a/lib/tests/igt_no_subtest.c
+++ b/lib/tests/igt_no_subtest.c
@@ -31,7 +31,7 @@ int main(int argc, char **argv)
{
char prog[] = "igt_no_exit";
char *fake_argv[] = {prog};
- int fake_argc = 1;
+ int fake_argc = ARRAY_SIZE(fake_argv);
igt_subtest_init(fake_argc, fake_argv);