summaryrefslogtreecommitdiff
path: root/src/tests/ecore
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-02-14 11:28:23 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-02-15 10:21:04 +0000
commit8e98c7eef9cdc6b337841fdd11d5b2c8a3079067 (patch)
tree80c46ba71236cb10b1cd0c7c79466a2560d1f52a /src/tests/ecore
parent9d65e64c00858f6827ec786737a59c728f440f8b (diff)
cmdline iface - fix to consume input array AND strings totally
strings often enough are generated e.g. via "%s/%s" or "%i" or similar etc. ... i have poitned to examples, so move to make all strings consistently stringshared, fix a bug added to the efl thread code where it accessed and freed array even tho array was consumed (but not strings) in the set, and the code used free to consume not stringshare_del. fix other code and tests to match EXCTLY the kind of bugs and mistakes with this kind of design that i said would happen more often just happened...
Diffstat (limited to 'src/tests/ecore')
-rw-r--r--src/tests/ecore/efl_app_test_cml.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tests/ecore/efl_app_test_cml.c b/src/tests/ecore/efl_app_test_cml.c
index 1b7cebf552..33024dabb8 100644
--- a/src/tests/ecore/efl_app_test_cml.c
+++ b/src/tests/ecore/efl_app_test_cml.c
@@ -23,13 +23,13 @@ _construct_array(void)
23{ 23{
24 Eina_Array *array = eina_array_new(16); 24 Eina_Array *array = eina_array_new(16);
25 25
26 eina_array_push(array, "/bin/sh"); 26 eina_array_push(array, eina_stringshare_add("/bin/sh"));
27 eina_array_push(array, "-C"); 27 eina_array_push(array, eina_stringshare_add("-C"));
28 eina_array_push(array, "foo"); 28 eina_array_push(array, eina_stringshare_add("foo"));
29 eina_array_push(array, "--test"); 29 eina_array_push(array, eina_stringshare_add("--test"));
30 eina_array_push(array, "--option=done"); 30 eina_array_push(array, eina_stringshare_add("--option=done"));
31 eina_array_push(array, "--"); 31 eina_array_push(array, eina_stringshare_add("--"));
32 eina_array_push(array, "asdf --test"); 32 eina_array_push(array, eina_stringshare_add("asdf --test"));
33 return array; 33 return array;
34} 34}
35 35