From b9a0c9d507d751343710bf5bbf6a32301ab35c31 Mon Sep 17 00:00:00 2001 From: dyamy-lee Date: Mon, 13 Sep 2021 14:24:41 +0900 Subject: [PATCH] mmifw-main-test : it needs a little time for receiving result of invoked proxy function. Change-Id: I12891c06d6d17fbc6a95d6780fe2242809b43ee5 --- tests/mmifw-main-test.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tests/mmifw-main-test.cpp b/tests/mmifw-main-test.cpp index f217022..cd1bcad 100644 --- a/tests/mmifw-main-test.cpp +++ b/tests/mmifw-main-test.cpp @@ -317,6 +317,12 @@ TEST_F(MMIFWMainTest, MMIFWMainRequestSendGetFocus) EXPECT_EQ(mmi_res, MMI_RESULT_SUCCESS); } + while (timer != 150000) + { + ecore_main_loop_iterate(); + timer++; + } + if(h){ mmi_instance_destroy(h); @@ -358,8 +364,20 @@ TEST_F(MMIFWMainTest, MMIFWMainRequestSendSetGetState) mmi_res = mmi_request_send_set_state(h, state); EXPECT_EQ(mmi_res, MMI_RESULT_SUCCESS); + while (timer != 150000) + { + ecore_main_loop_iterate(); + timer++; + } + state = mmi_state_get_current_state(h); - EXPECT_NE(state, MMI_STATE_NONE); + EXPECT_EQ(state, MMI_STATE_INITIATION); + } + + while (timer != 150000) + { + ecore_main_loop_iterate(); + timer++; } if(h){ -- 2.34.1