summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-06-09 15:09:08 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-06-10 17:38:59 +0200
commite9e8368823fb382921fde457d85bba22ae305b9b (patch)
treea22e568b549fca477472ff57926471816da1bd5c
parent68d06ecc1af38be491c94b706e905be3707c0a15 (diff)
tests: eo: handle error return of eina_value_int_convert()
CID: 1400962 Reviewed-by: Christopher Michael <devilhorns@comcast.net> Differential Revision: https://phab.enlightenment.org/D11958
-rw-r--r--src/tests/eo/suite/eo_test_class_simple.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/tests/eo/suite/eo_test_class_simple.c b/src/tests/eo/suite/eo_test_class_simple.c
index 846c2f2cb0..90449c6853 100644
--- a/src/tests/eo/suite/eo_test_class_simple.c
+++ b/src/tests/eo/suite/eo_test_class_simple.c
@@ -27,12 +27,19 @@ static Eina_Error
27_a_set_reflect(Eo *obj, Eina_Value value) 27_a_set_reflect(Eo *obj, Eina_Value value)
28{ 28{
29 int a; 29 int a;
30 Eina_Error r = 0;
30 31
31 eina_value_int_convert(&value, &a); 32 if (!eina_value_int_convert(&value, &a))
33 {
34 r = EINA_ERROR_VALUE_FAILED;
35 goto end;
36 }
32 simple_a_set(obj, a); 37 simple_a_set(obj, a);
38
39end:
33 eina_value_flush(&value); 40 eina_value_flush(&value);
34 41
35 return 0; 42 return r;
36} 43}
37 44
38static int 45static int