}
}
END_TEST
+
+/**
+ * @addtogroup ecore_con_shutdown
+ * @{
+ * @objective The negative test case checks that tested function finalizes Ecore_Con
+ * library and returns correct value if Ecore_Con library not was initialized.
+ * @n Input Data: none.
+ *
+ * @procedure
+ * @step 1 Call ecore_con_shutdown() three times for finalization ecore_con library.
+ * @step 2 Check the value returned by ecore_con_shutdown(); it must be 0.
+ *
+ * @passcondition
+ * Tested function must return 0, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_con_shutdown_n)
+{
+ int n;
+
+ ecore_con_shutdown();
+ ecore_con_shutdown();
+ n = ecore_con_shutdown();
+
+ if (n != 0)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
/**
*@}
*/
tcase_add_checked_fixture(tcase, setup, teardown);
tcase_add_test(tcase, utc_ecore_con_shutdown_p);
tcase_add_test(tcase, utc_ecore_con_shutdown_p2);
+ tcase_add_test(tcase, utc_ecore_con_shutdown_n);
suite_add_tcase(suite, tcase);
return suite;