summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2017-06-19 14:59:47 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-07-13 18:34:54 -0300
commit922c3c7e000f3e6187aecd5fbf0aea5ca2d12640 (patch)
tree2e1751d330cfa93af9efbc9e1dcd26ae652b1c3d
parentb3282efb76fc8e009adf1a1de799d593ffcfc26f (diff)
eina_mono: fix Inarray test code.
-rw-r--r--src/tests/efl_mono/libefl_mono_native_test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/efl_mono/libefl_mono_native_test.c b/src/tests/efl_mono/libefl_mono_native_test.c
index 4a71d024b9..d23b6903cd 100644
--- a/src/tests/efl_mono/libefl_mono_native_test.c
+++ b/src/tests/efl_mono/libefl_mono_native_test.c
@@ -58,7 +58,7 @@ void *_new_int(int v)
58} 58}
59 59
60static 60static
61int **_int_ref(int n) 61int *_int_ref(int n)
62{ 62{
63 static int r; 63 static int r;
64 r = n; 64 r = n;
@@ -911,7 +911,7 @@ Eina_Bool _inarray_str_equal(const Eina_Inarray *arr, const char * const base[],
911 return EINA_FALSE; 911 return EINA_FALSE;
912 for (unsigned int i = 0; i < len; ++i) 912 for (unsigned int i = 0; i < len; ++i)
913 { 913 {
914 if (0 != strcmp(*((char**)eina_inarray_nth(arr, i), base[i])) 914 if (0 != strcmp(*((char**)eina_inarray_nth(arr, i)), base[i]))
915 return EINA_FALSE; 915 return EINA_FALSE;
916 } 916 }
917 return EINA_TRUE; 917 return EINA_TRUE;
@@ -972,7 +972,7 @@ Eina_Bool _test_testing_check_eina_inarray_str_out(EINA_UNUSED Eo *obj, EINA_UNU
972 Eina_Bool r = _inarray_str_equal(_inarray_str_out_to_check, modified_arr_str, modified_arr_str_size); 972 Eina_Bool r = _inarray_str_equal(_inarray_str_out_to_check, modified_arr_str, modified_arr_str_size);
973 973
974 char **ele; 974 char **ele;
975 EINA_INARRAY_FOREACH(_inarray_str_in_own_to_check, ele) 975 EINA_INARRAY_FOREACH(_inarray_str_out_to_check, ele)
976 free(*ele); 976 free(*ele);
977 977
978 eina_inarray_free(_inarray_str_out_to_check); 978 eina_inarray_free(_inarray_str_out_to_check);
@@ -1008,7 +1008,7 @@ Eina_Bool _test_testing_check_eina_inarray_str_return(EINA_UNUSED Eo *obj, EINA_
1008 Eina_Bool r = _inarray_str_equal(_inarray_str_return_to_check, modified_arr_str, modified_arr_str_size); 1008 Eina_Bool r = _inarray_str_equal(_inarray_str_return_to_check, modified_arr_str, modified_arr_str_size);
1009 1009
1010 char **ele; 1010 char **ele;
1011 EINA_INARRAY_FOREACH(_inarray_str_in_own_to_check, ele) 1011 EINA_INARRAY_FOREACH(_inarray_str_return_to_check, ele)
1012 free(*ele); 1012 free(*ele);
1013 1013
1014 eina_inarray_free(_inarray_str_return_to_check); 1014 eina_inarray_free(_inarray_str_return_to_check);
@@ -1100,7 +1100,7 @@ Eina_Bool _test_testing_check_eina_inarray_obj_out(EINA_UNUSED Eo *obj, EINA_UNU
1100 if (!r) return r; 1100 if (!r) return r;
1101 1101
1102 Test_Numberwrapper **ele; 1102 Test_Numberwrapper **ele;
1103 EINA_INARRAY_FOREACH(_inarray_obj_in_own_to_check, ele) 1103 EINA_INARRAY_FOREACH(_inarray_obj_out_to_check, ele)
1104 efl_unref(*ele); 1104 efl_unref(*ele);
1105 1105
1106 eina_inarray_free(_inarray_obj_out_to_check); 1106 eina_inarray_free(_inarray_obj_out_to_check);
@@ -1137,7 +1137,7 @@ Eina_Bool _test_testing_check_eina_inarray_obj_return(EINA_UNUSED Eo *obj, EINA_
1137 if (!r) return r; 1137 if (!r) return r;
1138 1138
1139 Test_Numberwrapper **ele; 1139 Test_Numberwrapper **ele;
1140 EINA_INARRAY_FOREACH(_inarray_obj_in_own_to_check, ele) 1140 EINA_INARRAY_FOREACH(_inarray_obj_return_to_check, ele)
1141 efl_unref(*ele); 1141 efl_unref(*ele);
1142 1142
1143 eina_inarray_free(_inarray_obj_return_to_check); 1143 eina_inarray_free(_inarray_obj_return_to_check);