rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=d8486ecbfebfebe19b2995868409176c14aba93a
commit d8486ecbfebfebe19b2995868409176c14aba93a Author: Andrii Kroitor <an.kroi...@samsung.com> Date: Thu Jul 23 11:13:28 2015 +0300 UTC: fix eflete tests --- tests/test_eflete/app_free.c | 26 --------------- tests/test_eflete/app_shutdown.c | 29 ---------------- tests/test_eflete/colorselector_get.c | 62 ----------------------------------- tests/test_eflete/main_window_get.c | 62 ----------------------------------- tests/test_eflete/test_eflete.c | 8 ----- tests/test_eflete/test_eflete.h | 8 ----- tests/test_eflete/win_layout_get.c | 61 ---------------------------------- 7 files changed, 256 deletions(-) diff --git a/tests/test_eflete/app_free.c b/tests/test_eflete/app_free.c index 71e454e..8d01f09 100644 --- a/tests/test_eflete/app_free.c +++ b/tests/test_eflete/app_free.c @@ -59,32 +59,6 @@ END_TEST /** * @addtogroup app_free * @{ - * <tr> - * <td>app_free</td> - * <td>app_free_test_n</td> - * <td> - * @precondition - * @step 1 Nothing. - * - * @procedure - * @step 1 call app_free - * @step 2 check returned pointer - * </td> - * <td>NULL</td> - * <td>EINA_FALSE</td> - * </tr> - * @} - */ -EFLETE_TEST (app_free_test_n) -{ - ck_assert_msg(app_free(NULL) == EINA_FALSE, "Something was freed"); -} -END_TEST - - -/** - * @addtogroup app_free - * @{ * </TABLE> * @} * @} diff --git a/tests/test_eflete/app_shutdown.c b/tests/test_eflete/app_shutdown.c index c4b89d2..f1a30d8 100644 --- a/tests/test_eflete/app_shutdown.c +++ b/tests/test_eflete/app_shutdown.c @@ -96,35 +96,6 @@ END_TEST /** * @addtogroup app_shutdown * @{ - * <tr> - * <td>app_shutdown</td> - * <td>app_shutdown_test_n</td> - * <td> - * @precondition - * @step 1 Initialize elementary library. - * - * @procedure - * @step 1 call app_shutdown - * @step 2 check returned pointer - * </td> - * <td>void</td> - * <td>EINA_FALSE</td> - * </tr> - * @} - */ -EFLETE_TEST (app_shutdown_test_n) -{ - elm_init(0,0); - - ck_assert_msg(app_shutdown() == EINA_FALSE, "Everything gone right"); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup app_shutdown - * @{ * </TABLE> * @} * @} diff --git a/tests/test_eflete/colorselector_get.c b/tests/test_eflete/colorselector_get.c index e09a9a8..95a78a0 100644 --- a/tests/test_eflete/colorselector_get.c +++ b/tests/test_eflete/colorselector_get.c @@ -67,68 +67,6 @@ END_TEST /** * @addtogroup colorselector_get * @{ - * <tr> - * <td>colorselector_get</td> - * <td>colorselector_get_test_n1</td> - * <td> - * @precondition - * @step 1 Initialize elementary library. - * @step 2 initialize application with app_init() function - * @step 3 Create application data structure. - * - * @procedure - * @step 1 call colorselector_get - * @step 2 check returned pointer - * </td> - * <td>void</td> - * <td>NULL object</td> - * </tr> - * @} - */ -EFLETE_TEST (colorselector_get_test_n1) -{ - elm_init(0,0); - app_init(); - app_data_get(); - - ck_assert_msg(colorselector_get() == NULL, "Colorselector was returned"); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup colorselector_get - * @{ - * <tr> - * <td>colorselector_get</td> - * <td>colorselector_get_test_n2</td> - * <td> - * @precondition - * @step 1 Initialize elementary library. - * - * @procedure - * @step 1 call colorselector_get - * @step 2 check returned pointer - * </td> - * <td>void</td> - * <td>NULL object</td> - * </tr> - * @} - */ -EFLETE_TEST (colorselector_get_test_n2) -{ - elm_init(0,0); - - ck_assert_msg(colorselector_get() == NULL, "Colorselector was returned"); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup colorselector_get - * @{ * </TABLE> * @} * @} diff --git a/tests/test_eflete/main_window_get.c b/tests/test_eflete/main_window_get.c index 97d6099..ace5784 100644 --- a/tests/test_eflete/main_window_get.c +++ b/tests/test_eflete/main_window_get.c @@ -67,68 +67,6 @@ END_TEST /** * @addtogroup main_window_get * @{ - * <tr> - * <td>main_window_get</td> - * <td>main_window_get_test_n1</td> - * <td> - * @precondition - * @step 1 Initialize elementary library. - * @step 2 Initialize requred libraries. - * @step 3 Create application data structure. - * - * @procedure - * @step 1 call main_window_get - * @step 2 check returned pointer - * </td> - * <td>void</td> - * <td>NULL object</td> - * </tr> - * @} - */ -EFLETE_TEST (main_window_get_test_n1) -{ - elm_init(0,0); - app_init(); - app_data_get(); - - ck_assert_msg(main_window_get() == NULL, "Main window was returned"); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup main_window_get - * @{ - * <tr> - * <td>main_window_get</td> - * <td>main_window_get_test_n2</td> - * <td> - * @precondition - * @step 1 Initialize elementary library. - * - * @procedure - * @step 1 call main_window_get - * @step 2 check returned pointer - * </td> - * <td>void</td> - * <td>NULL object</td> - * </tr> - * @} - */ -EFLETE_TEST (main_window_get_test_n2) -{ - elm_init(0,0); - - ck_assert_msg(main_window_get() == NULL, "Main window was returned"); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup main_window_get - * @{ * </TABLE> * @} * @} diff --git a/tests/test_eflete/test_eflete.c b/tests/test_eflete/test_eflete.c index 185920a..5956a05 100644 --- a/tests/test_eflete/test_eflete.c +++ b/tests/test_eflete/test_eflete.c @@ -26,26 +26,18 @@ Suite* test_suite (void) { tcase_add_test(tcase, app_init_test_p); tcase_add_test(tcase, win_layout_get_test_p); - tcase_add_test(tcase, win_layout_get_test_n1); - tcase_add_test(tcase, win_layout_get_test_n2); tcase_add_test(tcase, app_shutdown_test_p1); tcase_add_test(tcase, app_shutdown_test_p2); - tcase_add_test(tcase, app_shutdown_test_n); tcase_add_test(tcase, app_data_get_test_p1); tcase_add_test(tcase, app_data_get_test_p2); tcase_add_test(tcase, app_free_test_p); - tcase_add_test(tcase, app_free_test_n); tcase_add_test(tcase, main_window_get_test_p); - tcase_add_test(tcase, main_window_get_test_n1); - tcase_add_test(tcase, main_window_get_test_n2); tcase_add_test(tcase, colorselector_get_test_p); - tcase_add_test(tcase, colorselector_get_test_n1); - tcase_add_test(tcase, colorselector_get_test_n2); suite_add_tcase(suite, tcase); return suite; diff --git a/tests/test_eflete/test_eflete.h b/tests/test_eflete/test_eflete.h index c0a07d5..6f7e495 100644 --- a/tests/test_eflete/test_eflete.h +++ b/tests/test_eflete/test_eflete.h @@ -28,23 +28,15 @@ void app_init_test_p(int); void win_layout_get_test_p(int); -void win_layout_get_test_n1(int); -void win_layout_get_test_n2(int); void app_shutdown_test_p1(int); void app_shutdown_test_p2(int); -void app_shutdown_test_n(int); void app_data_get_test_p1(int); void app_data_get_test_p2(int); void app_free_test_p(int); -void app_free_test_n(int); void main_window_get_test_p(int); -void main_window_get_test_n1(int); -void main_window_get_test_n2(int); void colorselector_get_test_p(int); -void colorselector_get_test_n1(int); -void colorselector_get_test_n2(int); diff --git a/tests/test_eflete/win_layout_get.c b/tests/test_eflete/win_layout_get.c index 357e6e9..db4452d 100644 --- a/tests/test_eflete/win_layout_get.c +++ b/tests/test_eflete/win_layout_get.c @@ -67,67 +67,6 @@ END_TEST /** * @addtogroup win_layout_get * @{ - * <tr> - * <td>win_layout_get</td> - * <td>win_layout_get_test_n1</td> - * <td> - * @precondition - * @step 1 Initialize elementary library. - * @step 2 Initialize requred libraries. - * @step 3 Create application data structure. - * - * @procedure - * @step 1 call win_layout_get - * @step 2 check returned pointer - * </td> - * <td>void</td> - * <td>NULL object</td> - * </tr> - * @} - */ -EFLETE_TEST (win_layout_get_test_n1) -{ - elm_init(0,0); - app_init(); - app_data_get(); - - ck_assert_msg(win_layout_get() == NULL, "failure: win_layout was returned"); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup win_layout_get - * @{ - * <tr> - * <td>win_layout_get</td> - * <td>win_layout_get_test_n2</td> - * <td> - * @precondition - * @step 1 Initialize elementary library. - * - * @procedure - * @step 1 call win_layout_get - * @step 2 check returned pointer - * </td> - * <td>void</td> - * <td>NULL object</td> - * </tr> - * @} - */ -EFLETE_TEST (win_layout_get_test_n2) -{ - elm_init(0,0); - - ck_assert_msg(win_layout_get() == NULL, "failure: win_layout was returned"); - - elm_shutdown(); -} -END_TEST -/** - * @addtogroup win_layout_get - * @{ * </TABLE> * @} * @} --