-utc_elm_config_profile_get.c
-utc_elm_config_profile_set.c
+utc_elm_config_profile_get_set.c
utc_elm_config_profile_dir_get.c
utc_elm_config_profile_dir_free.c
utc_elm_config_profile_list_get.c
-utc_elm_config_profile_get.c
-utc_elm_config_profile_set.c
+utc_elm_config_profile_get_set.c
utc_elm_config_profile_dir_get.c
utc_elm_config_profile_dir_free.c
utc_elm_config_profile_list_get.c
-utc_elm_config_profile_get.c
-utc_elm_config_profile_set.c
+utc_elm_config_profile_get_set.c
utc_elm_config_profile_dir_get.c
utc_elm_config_profile_dir_free.c
utc_elm_config_profile_list_get.c
-utc_elm_config_profile_get.c
-utc_elm_config_profile_set.c
+utc_elm_config_profile_get_set.c
utc_elm_config_profile_dir_get.c
utc_elm_config_profile_dir_free.c
utc_elm_config_profile_list_get.c
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup elm_profile
- * @{
- * @defgroup elm_config_profile_get elm_config_profile_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_config_profile_get
- * @{
- * @objective Positive Test case checks if get Elementary's profile works properly and doesn't cause segmentation fault
- * @n Input Data: no parameters passed to function
- *
- * @procedure
- * @step 1 Get the current profile
- *
- * @passcondition Returned value is not NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_config_profile_get_p)
-{
- const char *profile = NULL;
-
- profile = elm_config_profile_get();
- if (profile == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_config_profile_get()
-{
- TCase *tcase = tcase_create("utc_elm_config_profile_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_config_profile_get_p);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup elm_profile
+ * @{
+ * @defgroup elm_config_profile_set elm_config_profile_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ */
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+}
+
+static void
+teardown(void)
+{
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_config_profile_set
+ * @{
+ * @objective Positive Test case checks if set Elementary's profile works properly and doesn't cause segmentation fault
+ * @n Input Data: the "someProfile" string
+ *
+ * @procedure
+ * @step 1 Set config_profile to system
+ * @step 2 Get the config_profile as set
+ *
+ * @passcondition Returned value is equal to "someProfile" and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_config_profile_set_p)
+{
+ const char *config_profile = NULL;
+
+ elm_config_profile_set("someProfile");
+ config_profile = elm_config_profile_get();
+ if ((!config_profile) || (strcmp(config_profile, "someProfile") != 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
+
+/**
+ * @addtogroup elm_config_profile_set
+ * @{
+ * @objective Negative Test case checks if test function call with NULL
+ * instead of the profile's name doesn't cause segmentation fault
+ * @n Input Data: NULL instead the profile's name
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead the profile's name
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_config_profile_set_n)
+{
+ UNITEST_FUNC_NEG(elm_config_profile_set, NULL);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_config_profile_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_config_profile_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_config_profile_set_p);
+ tcase_add_test(tcase, utc_elm_config_profile_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup elm_profile
- * @{
- * @defgroup elm_config_profile_set elm_config_profile_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_config_profile_set
- * @{
- * @objective Positive Test case checks if set Elementary's profile works properly and doesn't cause segmentation fault
- * @n Input Data: the "someProfile" string
- *
- * @procedure
- * @step 1 Set config_profile to system
- * @step 2 Get the config_profile as set
- *
- * @passcondition Returned value is equal to "someProfile" and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_config_profile_set_p)
-{
- const char *config_profile = NULL;
-
- elm_config_profile_set("someProfile");
- config_profile = elm_config_profile_get();
- if ((!config_profile) || (strcmp(config_profile, "someProfile") != 0))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_config_profile_set
- * @{
- * @objective Negative Test case checks if test function call with NULL
- * instead of the profile's name doesn't cause segmentation fault
- * @n Input Data: NULL instead the profile's name
- *
- * @procedure
- * @step 1 Call test function with NULL instead the profile's name
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_config_profile_set_n)
-{
- UNITEST_FUNC_NEG(elm_config_profile_set, NULL);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_config_profile_set()
-{
- TCase *tcase = tcase_create("utc_elm_config_profile_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_config_profile_set_p);
- tcase_add_test(tcase, utc_elm_config_profile_set_n);
- return tcase;
-}