projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92f8589
)
tests: eo: handle error return of eina_value_int_convert()
author
Stefan Schmidt
<s.schmidt@samsung.com>
Tue, 9 Jun 2020 13:09:08 +0000
(15:09 +0200)
committer
Jongmin Lee
<jm105.lee@samsung.com>
Wed, 10 Jun 2020 21:27:14 +0000
(06:27 +0900)
CID: 1400962
Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Differential Revision: https://phab.enlightenment.org/D11958
src/tests/eo/suite/eo_test_class_simple.c
patch
|
blob
|
history
diff --git
a/src/tests/eo/suite/eo_test_class_simple.c
b/src/tests/eo/suite/eo_test_class_simple.c
index
846c2f2
..
90449c6
100644
(file)
--- 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
_a_set_reflect(Eo *obj, Eina_Value value)
{
int a;
+ Eina_Error r = 0;
- eina_value_int_convert(&value, &a);
+ if (!eina_value_int_convert(&value, &a))
+ {
+ r = EINA_ERROR_VALUE_FAILED;
+ goto end;
+ }
simple_a_set(obj, a);
+
+end:
eina_value_flush(&value);
- return
0
;
+ return
r
;
}
static int