summaryrefslogtreecommitdiff
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
parent2ea7bc5a81c920afbb9ef197c6c7c5659508c4d4 (diff)
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
-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,
1316 * ex: elementary_test "Box Vert 2" */ 1316 * ex: elementary_test "Box Vert 2" */
1317 if (eina_array_count(arge->argv) == 2) 1317 if (eina_array_count(arge->argv) == 2)
1318 { 1318 {
1319 if (!strcmp(eina_array_data_get(arge->argv, 0), "--help")) 1319 if (!strcmp(eina_array_data_get(arge->argv, 1), "--help"))
1320 { 1320 {
1321 efl_loop_quit(ev->object, 1321 efl_loop_quit(ev->object,
1322 eina_value_string_init("Usages:\n" 1322 eina_value_string_init("Usages:\n"
@@ -1327,17 +1327,17 @@ efl_main(void *data EINA_UNUSED,
1327 "$ elementary_test -to Button\n\n")); 1327 "$ elementary_test -to Button\n\n"));
1328 return ; 1328 return ;
1329 } 1329 }
1330 autorun = eina_array_data_get(arge->argv, 0); 1330 autorun = eina_array_data_get(arge->argv, 1);
1331 } 1331 }
1332 else if (eina_array_count(arge->argv) == 3) 1332 else if (eina_array_count(arge->argv) == 3)
1333 { 1333 {
1334 /* Just a workaround to make the shot module more 1334 /* Just a workaround to make the shot module more
1335 * useful with elementary test. */ 1335 * useful with elementary test. */
1336 if ((!strcmp(eina_array_data_get(arge->argv, 1), "--test-win-only")) || 1336 if ((!strcmp(eina_array_data_get(arge->argv, 2), "--test-win-only")) ||
1337 (!strcmp(eina_array_data_get(arge->argv, 1), "-to"))) 1337 (!strcmp(eina_array_data_get(arge->argv, 2), "-to")))
1338 { 1338 {
1339 test_win_only = EINA_TRUE; 1339 test_win_only = EINA_TRUE;
1340 autorun = eina_array_data_get(arge->argv, 2); 1340 autorun = eina_array_data_get(arge->argv, 3);
1341 } 1341 }
1342 } 1342 }
1343 1343