summaryrefslogtreecommitdiff
path: root/src/tests/eo
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eo')
-rw-r--r--src/tests/eo/suite/eo_test_general.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index 603b14e836..889bfdd294 100644
--- a/src/tests/eo/suite/eo_test_general.c
+++ b/src/tests/eo/suite/eo_test_general.c
@@ -1788,6 +1788,14 @@ EFL_START_TEST(efl_object_auto_unref_test)
1788} 1788}
1789EFL_END_TEST 1789EFL_END_TEST
1790 1790
1791EFL_START_TEST(efl_object_size)
1792{
1793 // This test is checking that we are not increasing the size of our object over time
1794 // Update this number only if you modified the class size on purpose
1795 ck_assert_int_le(efl_class_memory_size_get(SIMPLE_CLASS), 148);
1796}
1797EFL_END_TEST
1798
1791void eo_test_general(TCase *tc) 1799void eo_test_general(TCase *tc)
1792{ 1800{
1793 tcase_add_test(tc, eo_simple); 1801 tcase_add_test(tc, eo_simple);
@@ -1815,4 +1823,5 @@ void eo_test_general(TCase *tc)
1815 tcase_add_test(tc, efl_cast_test); 1823 tcase_add_test(tc, efl_cast_test);
1816 tcase_add_test(tc, efl_object_destruct_test); 1824 tcase_add_test(tc, efl_object_destruct_test);
1817 tcase_add_test(tc, efl_object_auto_unref_test); 1825 tcase_add_test(tc, efl_object_auto_unref_test);
1826 tcase_add_test(tc, efl_object_size);
1818} 1827}