eo: Correctly name Realized classes.
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Mon, 1 Apr 2019 22:06:20 +0000 (22:06 +0000)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 8 Apr 2019 01:45:21 +0000 (10:45 +0900)
The previous preprocessor rule was generating strings like
"\"Efl.App\"_Realized.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8527

src/lib/eo/eo_internal.h
src/tests/ecore/efl_app_test_loop.c

index 7c57e98..9e29809 100644 (file)
@@ -47,7 +47,7 @@ EAPI void ___efl_ref2_reset(const Eo *obj_id);
 #define EFL_CLASS_SIMPLE_CLASS(FUNC, NAME, ABSTRACT_CLASS) \
 static const Efl_Class_Description FUNC ##_realized_class_desc = { \
      EO_VERSION, \
-     #NAME"_Realized", \
+     NAME "_Realized", \
      EFL_CLASS_TYPE_REGULAR, \
      0, NULL, NULL, NULL \
 }; \
index 88b4dd2..7b8dafc 100644 (file)
@@ -93,8 +93,15 @@ EFL_START_TEST(efl_app_test_efl_loop_concentric)
 }
 EFL_END_TEST
 
+EFL_START_TEST(efl_loop_test_realized_name)
+{
+   ck_assert_str_eq(efl_class_name_get(efl_loop_realized_class_get()), "Efl.Loop_Realized");
+}
+EFL_END_TEST
+
 void efl_app_test_efl_loop(TCase *tc)
 {
    tcase_add_test(tc, efl_app_test_efl_loop_register);
    tcase_add_test(tc, efl_app_test_efl_loop_concentric);
+   tcase_add_test(tc, efl_loop_test_realized_name);
 }