aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-07-23 13:34:48 -0400
committerChris Michael <cp.michael@samsung.com>2018-07-23 13:34:48 -0400
commit7ebcb710d2776a0bbd905552226dc1141a18ef7d (patch)
tree3c585203a0d4502e0942b443b893ec8b138ffa9a /src/bin/elementary
parentevas clip: more strict comparison. (diff)
downloadefl-7ebcb710d2776a0bbd905552226dc1141a18ef7d.tar.gz
elm_test: fix arg parsing
Summary: recent changes to ecore changed arg numbering again and no callers outside of test suites were updated ref 9c8749b99a03d3601321da6d16071dd7b631d1ae Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #committers Tags: #efl_widgets Differential Revision: https://phab.enlightenment.org/D6668
Diffstat (limited to 'src/bin/elementary')
-rw-r--r--src/bin/elementary/test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/elementary/test.c b/src/bin/elementary/test.c
index 8d8d9701d5..07af101a7f 100644
--- a/src/bin/elementary/test.c
+++ b/src/bin/elementary/test.c
@@ -1316,7 +1316,7 @@ efl_main(void *data EINA_UNUSED,
* ex: elementary_test "Box Vert 2" */
if (eina_array_count(arge->argv) == 2)
{
- if (!strcmp(eina_array_data_get(arge->argv, 0), "--help"))
+ if (!strcmp(eina_array_data_get(arge->argv, 1), "--help"))
{
efl_loop_quit(ev->object,
eina_value_string_init("Usages:\n"
@@ -1327,17 +1327,17 @@ efl_main(void *data EINA_UNUSED,
"$ elementary_test -to Button\n\n"));
return ;
}
- autorun = eina_array_data_get(arge->argv, 0);
+ autorun = eina_array_data_get(arge->argv, 1);
}
else if (eina_array_count(arge->argv) == 3)
{
/* Just a workaround to make the shot module more
* useful with elementary test. */
- if ((!strcmp(eina_array_data_get(arge->argv, 1), "--test-win-only")) ||
- (!strcmp(eina_array_data_get(arge->argv, 1), "-to")))
+ if ((!strcmp(eina_array_data_get(arge->argv, 2), "--test-win-only")) ||
+ (!strcmp(eina_array_data_get(arge->argv, 2), "-to")))
{
test_win_only = EINA_TRUE;
- autorun = eina_array_data_get(arge->argv, 2);
+ autorun = eina_array_data_get(arge->argv, 3);
}
}