rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=d8b6bbeb3e1c88720fe4190342557430fa67809f
commit d8b6bbeb3e1c88720fe4190342557430fa67809f Author: Andrii Kroitor <an.kroi...@samsung.com> Date: Wed Mar 16 12:18:09 2016 +0200 UTC: update history test updated function prototypes one change shouldn't be added to history twice --- tests/test_history/history_undo_redo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_history/history_undo_redo.c b/tests/test_history/history_undo_redo.c index 42b7967..48ae3e7 100644 --- a/tests/test_history/history_undo_redo.c +++ b/tests/test_history/history_undo_redo.c @@ -34,7 +34,7 @@ static Evas_Object *pseudo_object; /* test stubs that check args, return specified value, and report what function was called */ static int _function_type_int_undo_return_true_called = 0; static Eina_Bool -_function_type_int_undo_return_true(Evas_Object *obj, int val) +_function_type_int_undo_return_true(Evas_Object *obj, Change *change __UNUSED__, Eina_Bool merge __UNUSED__, int val) { ck_assert(obj == pseudo_object); ck_assert(val == 42); @@ -44,7 +44,7 @@ _function_type_int_undo_return_true(Evas_Object *obj, int val) static int _function_type_int_redo_return_true_called = 0; static Eina_Bool -_function_type_int_redo_return_true(Evas_Object *obj, int val) +_function_type_int_redo_return_true(Evas_Object *obj, Change *change __UNUSED__, Eina_Bool merge __UNUSED__, int val) { ck_assert(obj == pseudo_object); ck_assert(val == 24); @@ -99,6 +99,8 @@ EFLETE_TEST (history_undo_redo_test_p) d1->redo.args.type_i.i1 = 24; change_diff_add(change, d1); history_change_add(history, change); + change = change_add("test"); + change_diff_add(change, d1); history_change_add(history, change); ck_assert(history_undo(history) == true); --