utc_elm_progressbar_xxxx: Merge TCs to reduce duplicate test operations 84/189184/2
authorApurv Khatri <apurv.khatri@samsung.com>
Fri, 14 Sep 2018 05:24:45 +0000 (10:54 +0530)
committerHermet Park <chuneon.park@samsung.com>
Fri, 21 Sep 2018 07:34:47 +0000 (07:34 +0000)
Change-Id: I4b463cf61e2b7a05585b9ed606f81445c4a34f9d

23 files changed:
TC/elementary/progressbar/tslist
TC/elementary/progressbar/tslist_mobile
TC/elementary/progressbar/tslist_tv
TC/elementary/progressbar/tslist_wear
TC/elementary/progressbar/utc_elm_progressbar_add.c [deleted file]
TC/elementary/progressbar/utc_elm_progressbar_horizontal_get.c [deleted file]
TC/elementary/progressbar/utc_elm_progressbar_horizontal_get_set.c [new file with mode: 0644]
TC/elementary/progressbar/utc_elm_progressbar_horizontal_set.c [deleted file]
TC/elementary/progressbar/utc_elm_progressbar_inverted_get.c [deleted file]
TC/elementary/progressbar/utc_elm_progressbar_inverted_get_set.c [new file with mode: 0644]
TC/elementary/progressbar/utc_elm_progressbar_inverted_set.c [deleted file]
TC/elementary/progressbar/utc_elm_progressbar_pulse_get.c [deleted file]
TC/elementary/progressbar/utc_elm_progressbar_pulse_get_set.c [new file with mode: 0644]
TC/elementary/progressbar/utc_elm_progressbar_pulse_set.c [deleted file]
TC/elementary/progressbar/utc_elm_progressbar_span_size_get.c [deleted file]
TC/elementary/progressbar/utc_elm_progressbar_span_size_get_set.c [new file with mode: 0644]
TC/elementary/progressbar/utc_elm_progressbar_span_size_set.c [deleted file]
TC/elementary/progressbar/utc_elm_progressbar_unit_format_get.c [deleted file]
TC/elementary/progressbar/utc_elm_progressbar_unit_format_get_set.c [new file with mode: 0644]
TC/elementary/progressbar/utc_elm_progressbar_unit_format_set.c [deleted file]
TC/elementary/progressbar/utc_elm_progressbar_value_get.c [deleted file]
TC/elementary/progressbar/utc_elm_progressbar_value_get_set.c [new file with mode: 0644]
TC/elementary/progressbar/utc_elm_progressbar_value_set.c [deleted file]

index b304eb3c16bc30a0b182d308da658c498f72f325..97cca9fdbd538354128b3e55c05a28f9b60b213a 100644 (file)
@@ -1,16 +1,9 @@
-utc_elm_progressbar_add.c
-utc_elm_progressbar_horizontal_get.c
-utc_elm_progressbar_horizontal_set.c
-utc_elm_progressbar_inverted_get.c
-utc_elm_progressbar_inverted_set.c
+utc_elm_progressbar_horizontal_get_set.c
+utc_elm_progressbar_inverted_get_set.c
 utc_elm_progressbar_pulse.c
-utc_elm_progressbar_pulse_get.c
-utc_elm_progressbar_pulse_set.c
-utc_elm_progressbar_span_size_get.c
-utc_elm_progressbar_span_size_set.c
-utc_elm_progressbar_unit_format_get.c
-utc_elm_progressbar_unit_format_set.c
-utc_elm_progressbar_value_get.c
-utc_elm_progressbar_value_set.c
+utc_elm_progressbar_pulse_get_set.c
+utc_elm_progressbar_span_size_get_set.c
+utc_elm_progressbar_unit_format_get_set.c
+utc_elm_progressbar_value_get_set.c
 utc_elm_progressbar_unit_format_function_set.c
 utc_elm_progressbar_part_value_set_get.c
index b304eb3c16bc30a0b182d308da658c498f72f325..97cca9fdbd538354128b3e55c05a28f9b60b213a 100644 (file)
@@ -1,16 +1,9 @@
-utc_elm_progressbar_add.c
-utc_elm_progressbar_horizontal_get.c
-utc_elm_progressbar_horizontal_set.c
-utc_elm_progressbar_inverted_get.c
-utc_elm_progressbar_inverted_set.c
+utc_elm_progressbar_horizontal_get_set.c
+utc_elm_progressbar_inverted_get_set.c
 utc_elm_progressbar_pulse.c
-utc_elm_progressbar_pulse_get.c
-utc_elm_progressbar_pulse_set.c
-utc_elm_progressbar_span_size_get.c
-utc_elm_progressbar_span_size_set.c
-utc_elm_progressbar_unit_format_get.c
-utc_elm_progressbar_unit_format_set.c
-utc_elm_progressbar_value_get.c
-utc_elm_progressbar_value_set.c
+utc_elm_progressbar_pulse_get_set.c
+utc_elm_progressbar_span_size_get_set.c
+utc_elm_progressbar_unit_format_get_set.c
+utc_elm_progressbar_value_get_set.c
 utc_elm_progressbar_unit_format_function_set.c
 utc_elm_progressbar_part_value_set_get.c
index b304eb3c16bc30a0b182d308da658c498f72f325..97cca9fdbd538354128b3e55c05a28f9b60b213a 100644 (file)
@@ -1,16 +1,9 @@
-utc_elm_progressbar_add.c
-utc_elm_progressbar_horizontal_get.c
-utc_elm_progressbar_horizontal_set.c
-utc_elm_progressbar_inverted_get.c
-utc_elm_progressbar_inverted_set.c
+utc_elm_progressbar_horizontal_get_set.c
+utc_elm_progressbar_inverted_get_set.c
 utc_elm_progressbar_pulse.c
-utc_elm_progressbar_pulse_get.c
-utc_elm_progressbar_pulse_set.c
-utc_elm_progressbar_span_size_get.c
-utc_elm_progressbar_span_size_set.c
-utc_elm_progressbar_unit_format_get.c
-utc_elm_progressbar_unit_format_set.c
-utc_elm_progressbar_value_get.c
-utc_elm_progressbar_value_set.c
+utc_elm_progressbar_pulse_get_set.c
+utc_elm_progressbar_span_size_get_set.c
+utc_elm_progressbar_unit_format_get_set.c
+utc_elm_progressbar_value_get_set.c
 utc_elm_progressbar_unit_format_function_set.c
 utc_elm_progressbar_part_value_set_get.c
index b304eb3c16bc30a0b182d308da658c498f72f325..97cca9fdbd538354128b3e55c05a28f9b60b213a 100644 (file)
@@ -1,16 +1,9 @@
-utc_elm_progressbar_add.c
-utc_elm_progressbar_horizontal_get.c
-utc_elm_progressbar_horizontal_set.c
-utc_elm_progressbar_inverted_get.c
-utc_elm_progressbar_inverted_set.c
+utc_elm_progressbar_horizontal_get_set.c
+utc_elm_progressbar_inverted_get_set.c
 utc_elm_progressbar_pulse.c
-utc_elm_progressbar_pulse_get.c
-utc_elm_progressbar_pulse_set.c
-utc_elm_progressbar_span_size_get.c
-utc_elm_progressbar_span_size_set.c
-utc_elm_progressbar_unit_format_get.c
-utc_elm_progressbar_unit_format_set.c
-utc_elm_progressbar_value_get.c
-utc_elm_progressbar_value_set.c
+utc_elm_progressbar_pulse_get_set.c
+utc_elm_progressbar_span_size_get_set.c
+utc_elm_progressbar_unit_format_get_set.c
+utc_elm_progressbar_value_get_set.c
 utc_elm_progressbar_unit_format_function_set.c
 utc_elm_progressbar_part_value_set_get.c
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_add.c b/TC/elementary/progressbar/utc_elm_progressbar_add.c
deleted file mode 100644 (file)
index 2f1af68..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_progressbar
- * @{
- * @defgroup elm_progressbar_add elm_progressbar_add()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
-   if ( NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_progressbar_add
- * @{
- * @objective Positive test case checks if add a new progress bar works properly and doesn't cause segmentation fault
- * @n Input Data: the parent window object
- *
- * @procedure
- * @step 1 Add a new progress bar widget to the main window
- *
- * @passcondition Returned value is not NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_add_p)
-{
-   Evas_Object *progressbar = NULL;
-
-   progressbar = elm_progressbar_add(main_win);
-   if (progressbar == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_del(progressbar);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_progressbar_add
- * @{
- * @objective Negative Test case checks if function call with NULL instead of parent window
- * works properly and without segmentation fault
- * @n Input Data: NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_progressbar_add with NULL instead of the window object
- *
- * @passcondition Returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_add_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_progressbar_add, main_win))
-     {
-        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_progressbar_add()
-{
-   TCase *tcase = tcase_create("utc_elm_progressbar_add");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_progressbar_add_p);
-   tcase_add_test(tcase, utc_elm_progressbar_add_n);
-   return tcase;
-}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_horizontal_get.c b/TC/elementary/progressbar/utc_elm_progressbar_horizontal_get.c
deleted file mode 100644 (file)
index 8b2c599..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *progressbar = NULL;
-
-/**
- * @addtogroup elm_progressbar
- * @{
- * @defgroup elm_progressbar_horizontal_get elm_progressbar_horizontal_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new progress bar widget to the main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   progressbar = elm_progressbar_add(main_win);
-   if (progressbar == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if ( NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_progressbar_horizontal_get
- * @{
- * @objective Positive Test case checks if function get horizontal orientation properly and doesn't cause segmentation fault
- * @n Input Data: the progressbar object
- *
- * @procedure
- * @step 1 Set the horizontal property of progressbar to EINA_TRUE
- * @step 2 Get the horizontal property of progressbar
- * @step 3 Set the horizontal property of progressbar to EINA_FALSE
- * @step 4 Get the horizontal property of progressbar
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_horizontal_get_p)
-{
-   Eina_Bool horizontal = EINA_FALSE;
-
-   if (progressbar == NULL)
-     {
-        return;
-     }
-   elm_progressbar_horizontal_set(progressbar, EINA_TRUE);
-   horizontal = elm_progressbar_horizontal_get(progressbar);
-   if (EINA_TRUE != horizontal)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_progressbar_horizontal_set(progressbar, EINA_FALSE);
-   horizontal = elm_progressbar_horizontal_get(progressbar);
-   if (EINA_FALSE != horizontal)
-     {
-        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_progressbar_horizontal_get
- * @{
- * @objective Negative Test case checks if function call with NULL
- * instead of progressbar parameter works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the progressbar object
- *
- * @procedure
- * @step 1 Call elm_progressbar_horizontal_get with NULL instead of the progressbar object
- *
- * @passcondition Returned value is equal to EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_horizontal_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_progressbar_horizontal_get, progressbar) == TEST_FAIL)
-     {
-        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_progressbar_horizontal_get()
-{
-   TCase *tcase = tcase_create("utc_elm_progressbar_horizontal_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_progressbar_horizontal_get_p);
-   tcase_add_test(tcase, utc_elm_progressbar_horizontal_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_horizontal_get_set.c b/TC/elementary/progressbar/utc_elm_progressbar_horizontal_get_set.c
new file mode 100644 (file)
index 0000000..0b4d708
--- /dev/null
@@ -0,0 +1,167 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Evas_Object *progressbar = NULL;
+
+/**
+ * @addtogroup elm_progressbar
+ * @{
+ * @defgroup elm_progressbar_horizontal_get elm_progressbar_horizontal_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a new progress bar widget to the main window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   progressbar = elm_progressbar_add(main_win);
+   if (progressbar == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if ( NULL != main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_progressbar_horizontal_get
+ * @{
+ * @objective Positive Test case checks if function get horizontal orientation properly and doesn't cause segmentation fault
+ * @n Input Data: the progressbar object
+ *
+ * @procedure
+ * @step 1 Set the horizontal property of progressbar to EINA_TRUE
+ * @step 2 Get the horizontal property of progressbar
+ * @step 3 Set the horizontal property of progressbar to EINA_FALSE
+ * @step 4 Get the horizontal property of progressbar
+ *
+ * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_horizontal_get_p)
+{
+   Eina_Bool horizontal = EINA_FALSE;
+
+   elm_progressbar_horizontal_set(progressbar, EINA_TRUE);
+   horizontal = elm_progressbar_horizontal_get(progressbar);
+   if (EINA_TRUE != horizontal)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_progressbar_horizontal_set(progressbar, EINA_FALSE);
+   horizontal = elm_progressbar_horizontal_get(progressbar);
+   if (EINA_FALSE != horizontal)
+     {
+        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_progressbar_horizontal_get
+ * @{
+ * @objective Negative Test case checks if function call with NULL
+ * instead of progressbar parameter works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the progressbar object
+ *
+ * @procedure
+ * @step 1 Call elm_progressbar_horizontal_get with NULL instead of the progressbar object
+ *
+ * @passcondition Returned value is equal to EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_horizontal_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_progressbar_horizontal_get, progressbar) == TEST_FAIL)
+     {
+        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_progressbar_horizontal_set
+ * @{
+ * @objective Negative Test case checks if function call with NULL
+ * instead of progressbar parameter works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the progressbar object
+ * @li EINA_FALSE
+ *
+ * @procedure
+ * @step 1 Call elm_progressbar_horizontal_set with NULL instead of the progressbar object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_horizontal_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_progressbar_horizontal_set, progressbar, EINA_FALSE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_progressbar_add
+ * @{
+ * @objective Negative Test case checks if function call with NULL instead of parent window
+ * works properly and without segmentation fault
+ * @n Input Data: NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_progressbar_add with NULL instead of the window object
+ *
+ * @passcondition Returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_add_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_progressbar_add, main_win))
+     {
+        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 * _utc_elm_progressbar_horizontal_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_progressbar_horizontal_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_progressbar_horizontal_get_p);
+   tcase_add_test(tcase, utc_elm_progressbar_horizontal_get_n);
+   tcase_add_test(tcase, utc_elm_progressbar_horizontal_set_n);
+   tcase_add_test(tcase, utc_elm_progressbar_add_n);
+   return tcase;
+}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_horizontal_set.c b/TC/elementary/progressbar/utc_elm_progressbar_horizontal_set.c
deleted file mode 100644 (file)
index caa0ea1..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *progressbar = NULL;
-
-/**
- * @addtogroup elm_progressbar
- * @{
- * @defgroup elm_progressbar_horizontal_set elm_progressbar_horizontal_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new progress bar widget to the main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   progressbar = elm_progressbar_add(main_win);
-   if (progressbar == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if ( NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_progressbar_horizontal_set
- * @{
- * @objective Positive Test case checks if function set horizontal orientation properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the progressbar object
- * @li EINA_FALSE, EINA_TRUE
- *
- * @procedure
- * @step 1 Set the horizontal property of progressbar to EINA_TRUE
- * @step 2 Get the horizontal property of progressbar
- * @step 3 Set the horizontal property of progressbar to EINA_FALSE
- * @step 4 Get the horizontal property of progressbar
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_horizontal_set_p)
-{
-   Eina_Bool horizontal = EINA_FALSE;
-
-   if (progressbar == NULL)
-     {
-        return;
-     }
-   elm_progressbar_horizontal_set(progressbar, EINA_TRUE);
-   horizontal = elm_progressbar_horizontal_get(progressbar);
-   if (EINA_TRUE != horizontal)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_progressbar_horizontal_set(progressbar, EINA_FALSE);
-   horizontal = elm_progressbar_horizontal_get(progressbar);
-   if (EINA_FALSE != horizontal)
-     {
-        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_progressbar_horizontal_set
- * @{
- * @objective Negative Test case checks if function call with NULL
- * instead of progressbar parameter works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the progressbar object
- * @li EINA_FALSE
- *
- * @procedure
- * @step 1 Call elm_progressbar_horizontal_set with NULL instead of the progressbar object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_horizontal_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_progressbar_horizontal_set, progressbar, EINA_FALSE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_progressbar_horizontal_set()
-{
-   TCase *tcase = tcase_create("utc_elm_progressbar_horizontal_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_progressbar_horizontal_set_p);
-   tcase_add_test(tcase, utc_elm_progressbar_horizontal_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_inverted_get.c b/TC/elementary/progressbar/utc_elm_progressbar_inverted_get.c
deleted file mode 100644 (file)
index 8e18828..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *progressbar = NULL;
-
-/**
- * @addtogroup elm_progressbar
- * @{
- * @defgroup elm_progressbar_inverted_get elm_progressbar_inverted_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new progress bar widget to the main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   progressbar = elm_progressbar_add(main_win);
-   if (progressbar == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if ( NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_progressbar_inverted_get
- * @{
- * @objective Positive test case checks if invert values order works properly and doesn't cause segmentation fault
- * @n Input Data: the progressbar object
- *
- * @procedure
- * @step 1 Set the invert property of progressbar to EINA_TRUE
- * @step 2 Get the invert property of progressbar
- * @step 3 Set the invert property of progressbar to EINA_FALSE
- * @step 4 Get the invert property of progressbar
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_inverted_get_p)
-{
-   Eina_Bool flag = EINA_FALSE;
-
-   if (progressbar == NULL)
-     {
-        return;
-     }
-   elm_progressbar_inverted_set(progressbar, EINA_TRUE);
-   flag = elm_progressbar_inverted_get(progressbar);
-   if (EINA_TRUE != flag)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_progressbar_inverted_set(progressbar, EINA_FALSE);
-   flag = elm_progressbar_inverted_get(progressbar);
-   if (EINA_FALSE != flag)
-     {
-        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_progressbar_inverted_get
- * @{
- * @objective Negative Test case checks if function call with NULL
- * instead of progressbar parameter works properly and without segmentation fault
- * @n Input Data: NULL instead of the progressbar object
- *
- * @procedure
- * @step 1 Call elm_progressbar_inverted_get with NULL instead of the progressbar object
- *
- * @passcondition Returned value is equal to EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_inverted_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_progressbar_inverted_get, progressbar) == TEST_FAIL)
-     {
-        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_progressbar_inverted_get()
-{
-   TCase *tcase = tcase_create("utc_elm_progressbar_inverted_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_progressbar_inverted_get_p);
-   tcase_add_test(tcase, utc_elm_progressbar_inverted_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_inverted_get_set.c b/TC/elementary/progressbar/utc_elm_progressbar_inverted_get_set.c
new file mode 100644 (file)
index 0000000..e6c2d2b
--- /dev/null
@@ -0,0 +1,142 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Evas_Object *progressbar = NULL;
+
+/**
+ * @addtogroup elm_progressbar
+ * @{
+ * @defgroup elm_progressbar_inverted_get elm_progressbar_inverted_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a new progress bar widget to the main window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   progressbar = elm_progressbar_add(main_win);
+   if (progressbar == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if ( NULL != main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_progressbar_inverted_get
+ * @{
+ * @objective Positive test case checks if invert values order works properly and doesn't cause segmentation fault
+ * @n Input Data: the progressbar object
+ *
+ * @procedure
+ * @step 1 Set the invert property of progressbar to EINA_TRUE
+ * @step 2 Get the invert property of progressbar
+ * @step 3 Set the invert property of progressbar to EINA_FALSE
+ * @step 4 Get the invert property of progressbar
+ *
+ * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_inverted_get_p)
+{
+   Eina_Bool flag = EINA_FALSE;
+
+   elm_progressbar_inverted_set(progressbar, EINA_TRUE);
+   flag = elm_progressbar_inverted_get(progressbar);
+   if (EINA_TRUE != flag)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_progressbar_inverted_set(progressbar, EINA_FALSE);
+   flag = elm_progressbar_inverted_get(progressbar);
+   if (EINA_FALSE != flag)
+     {
+        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_progressbar_inverted_get
+ * @{
+ * @objective Negative Test case checks if function call with NULL
+ * instead of progressbar parameter works properly and without segmentation fault
+ * @n Input Data: NULL instead of the progressbar object
+ *
+ * @procedure
+ * @step 1 Call elm_progressbar_inverted_get with NULL instead of the progressbar object
+ *
+ * @passcondition Returned value is equal to EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_inverted_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_progressbar_inverted_get, progressbar) == TEST_FAIL)
+     {
+        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_progressbar_inverted_set
+ * @{
+ * @objective Negative Test case checks if function call with NULL
+ * instead of progressbar parameter works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the progressbar object
+ * @li EINA_FALSE
+ *
+ * @procedure
+ * @step 1 Call elm_progressbar_inverted_set with NULL instead of the progressbar object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_inverted_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_progressbar_inverted_set, progressbar, EINA_FALSE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_progressbar_inverted_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_progressbar_inverted_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_progressbar_inverted_get_p);
+   tcase_add_test(tcase, utc_elm_progressbar_inverted_get_n);
+   tcase_add_test(tcase, utc_elm_progressbar_inverted_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_inverted_set.c b/TC/elementary/progressbar/utc_elm_progressbar_inverted_set.c
deleted file mode 100644 (file)
index c26c2e1..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *progressbar = NULL;
-
-/**
- * @addtogroup elm_progressbar
- * @{
- * @defgroup elm_progressbar_inverted_set elm_progressbar_inverted_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new progress bar widget to the main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   progressbar = elm_progressbar_add(main_win);
-   if (progressbar == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if ( NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_progressbar_inverted_set
- * @{
- * @objective Positive test case checks if invert values order works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the progressbar object
- * @li EINA_FALSE, EINA_TRUE
- *
- * @procedure
- * @step 1 Set the invert property of progressbar to EINA_TRUE
- * @step 2 Get the invert property of progressbar
- * @step 3 Set the invert property of progressbar to EINA_FALSE
- * @step 4 Get the invert property of progressbar
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_inverted_set_p)
-{
-   Eina_Bool flag = EINA_FALSE;
-
-   if (progressbar == NULL)
-     {
-        return;
-     }
-   elm_progressbar_inverted_set(progressbar, EINA_TRUE);
-   flag = elm_progressbar_inverted_get(progressbar);
-   if (EINA_TRUE != flag)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_progressbar_inverted_set(progressbar, EINA_FALSE);
-   flag = elm_progressbar_inverted_get(progressbar);
-   if (EINA_FALSE != flag)
-     {
-        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_progressbar_inverted_set
- * @{
- * @objective Negative Test case checks if function call with NULL
- * instead of progressbar parameter works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the progressbar object
- * @li EINA_FALSE
- *
- * @procedure
- * @step 1 Call elm_progressbar_inverted_set with NULL instead of the progressbar object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_inverted_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_progressbar_inverted_set, progressbar, EINA_FALSE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_progressbar_inverted_set()
-{
-   TCase *tcase = tcase_create("utc_elm_progressbar_inverted_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_progressbar_inverted_set_p);
-   tcase_add_test(tcase, utc_elm_progressbar_inverted_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_pulse_get.c b/TC/elementary/progressbar/utc_elm_progressbar_pulse_get.c
deleted file mode 100644 (file)
index 441cbe8..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *progressbar = NULL;
-
-/**
- * @addtogroup elm_progressbar
- * @{
- * @defgroup elm_progressbar_pulse_get elm_progressbar_pulse_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new progress bar widget to the main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   progressbar = elm_progressbar_add(main_win);
-   if (progressbar == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if ( NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_progressbar_pulse_get
- * @{
- * @objective Positive test case checks if get pulsing mode works properly and doesn't cause segmentation fault
- * @n Input Data: the progressbar object
- *
- * @procedure
- * @step 1 Set the pulsing mode of progressbar to EINA_TRUE
- * @step 2 Get the pulsing mode of progressbar
- * @step 3 Set the pulsing mode of progressbar to EINA_FALSE
- * @step 4 Get the pulsing mode of progressbar
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_pulse_get_p)
-{
-   Eina_Bool flag = EINA_FALSE;
-
-   if (progressbar == NULL)
-     {
-        return;
-     }
-   elm_progressbar_pulse_set(progressbar, EINA_TRUE);
-   flag = elm_progressbar_pulse_get(progressbar);
-   if (EINA_TRUE != flag)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_progressbar_pulse_set(progressbar, EINA_FALSE);
-   flag = elm_progressbar_pulse_get(progressbar);
-   if (EINA_FALSE != flag)
-     {
-        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_progressbar_pulse_get
- * @{
- * @objective Negative Test case checks if function call with NULL
- * instead of progressbar parameter works properly and without segmentation fault
- * @n Input Data: NULL instead of the progressbar object
- *
- * @procedure
- * @step 1 Call elm_progressbar_pulse_get with NULL instead of the progressbar object
- *
- * @passcondition Returned value is equal to EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_pulse_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_progressbar_pulse_get, progressbar) == TEST_FAIL)
-     {
-        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_progressbar_pulse_get()
-{
-   TCase *tcase = tcase_create("utc_elm_progressbar_pulse_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_progressbar_pulse_get_p);
-   tcase_add_test(tcase, utc_elm_progressbar_pulse_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_pulse_get_set.c b/TC/elementary/progressbar/utc_elm_progressbar_pulse_get_set.c
new file mode 100644 (file)
index 0000000..1120595
--- /dev/null
@@ -0,0 +1,142 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Evas_Object *progressbar = NULL;
+
+/**
+ * @addtogroup elm_progressbar
+ * @{
+ * @defgroup elm_progressbar_pulse_get elm_progressbar_pulse_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a new progress bar widget to the main window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   progressbar = elm_progressbar_add(main_win);
+   if (progressbar == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if ( NULL != main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_progressbar_pulse_get
+ * @{
+ * @objective Positive test case checks if get pulsing mode works properly and doesn't cause segmentation fault
+ * @n Input Data: the progressbar object
+ *
+ * @procedure
+ * @step 1 Set the pulsing mode of progressbar to EINA_TRUE
+ * @step 2 Get the pulsing mode of progressbar
+ * @step 3 Set the pulsing mode of progressbar to EINA_FALSE
+ * @step 4 Get the pulsing mode of progressbar
+ *
+ * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_pulse_get_p)
+{
+   Eina_Bool flag = EINA_FALSE;
+
+   elm_progressbar_pulse_set(progressbar, EINA_TRUE);
+   flag = elm_progressbar_pulse_get(progressbar);
+   if (EINA_TRUE != flag)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_progressbar_pulse_set(progressbar, EINA_FALSE);
+   flag = elm_progressbar_pulse_get(progressbar);
+   if (EINA_FALSE != flag)
+     {
+        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_progressbar_pulse_get
+ * @{
+ * @objective Negative Test case checks if function call with NULL
+ * instead of progressbar parameter works properly and without segmentation fault
+ * @n Input Data: NULL instead of the progressbar object
+ *
+ * @procedure
+ * @step 1 Call elm_progressbar_pulse_get with NULL instead of the progressbar object
+ *
+ * @passcondition Returned value is equal to EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_pulse_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_progressbar_pulse_get, progressbar) == TEST_FAIL)
+     {
+        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_progressbar_pulse_set
+ * @{
+ * @objective Negative Test case checks if function call with NULL
+ * instead of progressbar parameter works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the progressbar object
+ * @li EINA_FALSE
+ *
+ * @procedure
+ * @step 1 Call elm_progressbar_pulse_set with NULL instead of the progressbar object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_pulse_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_progressbar_pulse_set, progressbar, EINA_FALSE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_progressbar_pulse_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_progressbar_pulse_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_progressbar_pulse_get_p);
+   tcase_add_test(tcase, utc_elm_progressbar_pulse_get_n);
+   tcase_add_test(tcase, utc_elm_progressbar_pulse_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_pulse_set.c b/TC/elementary/progressbar/utc_elm_progressbar_pulse_set.c
deleted file mode 100644 (file)
index 19cfb37..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *progressbar = NULL;
-
-/**
- * @addtogroup elm_progressbar
- * @{
- * @defgroup elm_progressbar_pulse_set elm_progressbar_pulse_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new progress bar widget to the main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   progressbar = elm_progressbar_add(main_win);
-   if (progressbar == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if ( NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_progressbar_pulse_set
- * @{
- * @objective Positive test case checks if set pulsing mode works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the progressbar object
- * @li EINA_FALSE, EINA_TRUE
- *
- * @procedure
- * @step 1 Set the pulsing mode of progressbar to EINA_TRUE
- * @step 2 Get the pulsing mode of progressbar
- * @step 3 Set the pulsing mode of progressbar to EINA_FALSE
- * @step 4 Get the pulsing mode of progressbar
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_pulse_set_p)
-{
-   Eina_Bool flag = EINA_FALSE;
-
-   if (progressbar == NULL)
-     {
-        return;
-     }
-   elm_progressbar_pulse_set(progressbar, EINA_TRUE);
-   flag = elm_progressbar_pulse_get(progressbar);
-   if (EINA_TRUE != flag)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_progressbar_pulse_set(progressbar, EINA_FALSE);
-   flag = elm_progressbar_pulse_get(progressbar);
-   if (EINA_FALSE != flag)
-     {
-        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_progressbar_pulse_set
- * @{
- * @objective Negative Test case checks if function call with NULL
- * instead of progressbar parameter works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the progressbar object
- * @li EINA_FALSE
- *
- * @procedure
- * @step 1 Call elm_progressbar_pulse_set with NULL instead of the progressbar object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_pulse_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_progressbar_pulse_set, progressbar, EINA_FALSE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_progressbar_pulse_set()
-{
-   TCase *tcase = tcase_create("utc_elm_progressbar_pulse_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_progressbar_pulse_set_p);
-   tcase_add_test(tcase, utc_elm_progressbar_pulse_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_span_size_get.c b/TC/elementary/progressbar/utc_elm_progressbar_span_size_get.c
deleted file mode 100644 (file)
index da371d2..0000000
+++ /dev/null
@@ -1,118 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *progressbar = NULL;
-
-/**
- * @addtogroup elm_progressbar
- * @{
- * @defgroup elm_progressbar_span_size_get elm_progressbar_span_size_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new progress bar widget to the main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   progressbar = elm_progressbar_add(main_win);
-   if (progressbar == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if ( NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_progressbar_span_size_get
- * @{
- * @objective Positive test case checks if get the length of the bar region works properly and doesn't cause segmentation fault
- * @n Input Data: the progressbar object
- *
- * @procedure
- * @step 1 Set the length of the bar region of a given progress bar widget to 100
- * @step 2 Get the length of the bar region of a given progress bar widget
- *
- * @passcondition Returned value is equal to 100 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_span_size_get_p)
-{
-   Evas_Coord size = 0;
-
-   if (progressbar == NULL)
-     {
-        return;
-     }
-   elm_progressbar_span_size_set(progressbar, 100);
-   size = elm_progressbar_span_size_get(progressbar);
-   if (size != 100)
-     {
-        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_progressbar_span_size_get
- * @{
- * @objective Negative Test case checks if function call with NULL
- * instead of progressbar parameter doesn't cause segmentation fault
- * @n Input Data: NULL instead of the progressbar object
- *
- * @procedure
- * @step 1 Call elm_progressbar_span_size_get with NULL instead of the progressbar object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_span_size_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(0, elm_progressbar_span_size_get, progressbar) == TEST_FAIL)
-     {
-        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_progressbar_span_size_get()
-{
-   TCase *tcase = tcase_create("utc_elm_progressbar_span_size_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_progressbar_span_size_get_p);
-   tcase_add_test(tcase, utc_elm_progressbar_span_size_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_span_size_get_set.c b/TC/elementary/progressbar/utc_elm_progressbar_span_size_get_set.c
new file mode 100644 (file)
index 0000000..62529f2
--- /dev/null
@@ -0,0 +1,167 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Evas_Object *progressbar = NULL;
+
+/**
+ * @addtogroup elm_progressbar
+ * @{
+ * @defgroup elm_progressbar_span_size_set elm_progressbar_span_size_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a new progress bar widget to the main window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   progressbar = elm_progressbar_add(main_win);
+   if (progressbar == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if ( NULL != main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_progressbar_span_size_set
+ * @{
+ * @objective Positive test case checks if set the length of the bar region works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the progressbar object
+ * @li 100
+ *
+ * @procedure
+ * @step 1 Set the length of the bar region of a given progress bar widget to 100
+ * @step 2 Get the length of the bar region of a given progress bar widget
+ *
+ * @passcondition Returned value is equal to 100 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_span_size_set_p)
+{
+   Evas_Coord size = 0;
+
+   elm_progressbar_span_size_set(progressbar, 100);
+   size = elm_progressbar_span_size_get(progressbar);
+   if (size != 100)
+     {
+        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_progressbar_span_size_set
+ * @{
+ * @objective Negative Test case 01 checks if function call with NULL
+ * instead of progressbar parameter doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the progressbar object
+ * @li 100
+ *
+ * @procedure
+ * @step 1 Call elm_progressbar_span_size_set with NULL instead of the progressbar object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_span_size_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_progressbar_span_size_set, progressbar, 100);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_progressbar_span_size_set
+ * @{
+ * @objective Negative Test case 02 checks if function call with negative size parameter doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the progressbar object
+ * @li -1
+ *
+ * @procedure
+ * @step 1 Call elm_progressbar_span_size_set with -1 instead of the size parameter
+ * @step 2 Get the length of the bar region of a given progress bar widget
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+#ifdef NOT_APPROVED_FOR_BUILD
+START_TEST(utc_elm_progressbar_span_size_set_n2)
+{
+   elm_progressbar_span_size_set(progressbar, -1);
+   if (elm_progressbar_span_size_get(progressbar) != 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
+#endif //NOT_APPROVED_FOR_BUILD
+
+/**
+ * @addtogroup elm_progressbar_span_size_get
+ * @{
+ * @objective Negative Test case checks if function call with NULL
+ * instead of progressbar parameter doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the progressbar object
+ *
+ * @procedure
+ * @step 1 Call elm_progressbar_span_size_get with NULL instead of the progressbar object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_span_size_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(0, elm_progressbar_span_size_get, progressbar) == TEST_FAIL)
+     {
+        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 * _utc_elm_progressbar_span_size_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_progressbar_span_size_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_progressbar_span_size_set_p);
+   tcase_add_test(tcase, utc_elm_progressbar_span_size_set_n);
+#ifdef NOT_APPROVED_FOR_BUILD
+   tcase_add_test(tcase, utc_elm_progressbar_span_size_set_n2);
+#endif
+   tcase_add_test(tcase, utc_elm_progressbar_span_size_get_n);
+   return tcase;
+}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_span_size_set.c b/TC/elementary/progressbar/utc_elm_progressbar_span_size_set.c
deleted file mode 100644 (file)
index 560324e..0000000
+++ /dev/null
@@ -1,151 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *progressbar = NULL;
-
-/**
- * @addtogroup elm_progressbar
- * @{
- * @defgroup elm_progressbar_span_size_set elm_progressbar_span_size_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new progress bar widget to the main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   progressbar = elm_progressbar_add(main_win);
-   if (progressbar == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if ( NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_progressbar_span_size_set
- * @{
- * @objective Positive test case checks if set the length of the bar region works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the progressbar object
- * @li 100
- *
- * @procedure
- * @step 1 Set the length of the bar region of a given progress bar widget to 100
- * @step 2 Get the length of the bar region of a given progress bar widget
- *
- * @passcondition Returned value is equal to 100 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_span_size_set_p)
-{
-   Evas_Coord size = 0;
-
-   if (progressbar == NULL)
-     {
-        return;
-     }
-   elm_progressbar_span_size_set(progressbar, 100);
-   size = elm_progressbar_span_size_get(progressbar);
-   if (size != 100)
-     {
-        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_progressbar_span_size_set
- * @{
- * @objective Negative Test case 01 checks if function call with NULL
- * instead of progressbar parameter doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the progressbar object
- * @li 100
- *
- * @procedure
- * @step 1 Call elm_progressbar_span_size_set with NULL instead of the progressbar object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_span_size_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_progressbar_span_size_set, progressbar, 100);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_progressbar_span_size_set
- * @{
- * @objective Negative Test case 02 checks if function call with negative size parameter doesn't cause segmentation fault
- * @n Input Data:
- * @li the progressbar object
- * @li -1
- *
- * @procedure
- * @step 1 Call elm_progressbar_span_size_set with -1 instead of the size parameter
- * @step 2 Get the length of the bar region of a given progress bar widget
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-#ifdef NOT_APPROVED_FOR_BUILD
-START_TEST(utc_elm_progressbar_span_size_set_n2)
-{
-   elm_progressbar_span_size_set(progressbar, -1);
-   if (elm_progressbar_span_size_get(progressbar) != 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
-#endif //NOT_APPROVED_FOR_BUILD
-
-/**
- *@}
- */
-
-TCase * _utc_elm_progressbar_span_size_set()
-{
-   TCase *tcase = tcase_create("utc_elm_progressbar_span_size_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_progressbar_span_size_set_p);
-   tcase_add_test(tcase, utc_elm_progressbar_span_size_set_n);
-#ifdef NOT_APPROVED_FOR_BUILD
-   tcase_add_test(tcase, utc_elm_progressbar_span_size_set_n2);
-#endif
-   return tcase;
-}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_unit_format_get.c b/TC/elementary/progressbar/utc_elm_progressbar_unit_format_get.c
deleted file mode 100644 (file)
index ff6eaf3..0000000
+++ /dev/null
@@ -1,118 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *progressbar = NULL;
-
-/**
- * @addtogroup elm_progressbar
- * @{
- * @defgroup elm_progressbar_unit_format_get elm_progressbar_unit_format_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new progress bar widget to the main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   progressbar = elm_progressbar_add(main_win);
-   if (progressbar == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if ( NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_progressbar_unit_format_get
- * @{
- * @objective Positive test case checks if get the format string for a progress bar works properly and doesn't cause segmentation fault
- * @n Input Data: the progressbar object
- *
- * @procedure
- * @step 1 Set the format string for a given progress bar widget's units label to "%1.1f units"
- * @step 2 Retrieve the format string for a given progress bar widget's units label
- *
- * @passcondition Returned value is equal to "%1.1f units" and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_unit_format_get_p)
-{
-   const char *str = NULL;
-
-   if (progressbar == NULL)
-     {
-        return;
-     }
-   elm_progressbar_unit_format_set(progressbar, "%1.1f units");
-   str = elm_progressbar_unit_format_get(progressbar);
-   if ((str == NULL) || (strcmp(str, "%1.1f units") != 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_progressbar_unit_format_get
- * @{
- * @objective Negative Test case checks if function call with NULL
- * instead of progressbar parameter doesn't cause segmentation fault
- * @n Input Data: NULL instead of the progressbar object
- *
- * @procedure
- * @step 1 Call elm_progressbar_unit_format_get with NULL instead of the progressbar object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_unit_format_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(NULL, elm_progressbar_unit_format_get, progressbar) == TEST_FAIL)
-     {
-        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_progressbar_unit_format_get()
-{
-   TCase *tcase = tcase_create("utc_elm_progressbar_unit_format_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_progressbar_unit_format_get_p);
-   tcase_add_test(tcase, utc_elm_progressbar_unit_format_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_unit_format_get_set.c b/TC/elementary/progressbar/utc_elm_progressbar_unit_format_get_set.c
new file mode 100644 (file)
index 0000000..0a14a35
--- /dev/null
@@ -0,0 +1,133 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Evas_Object *progressbar = NULL;
+
+/**
+ * @addtogroup elm_progressbar
+ * @{
+ * @defgroup elm_progressbar_unit_format_get elm_progressbar_unit_format_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a new progress bar widget to the main window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   progressbar = elm_progressbar_add(main_win);
+   if (progressbar == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if ( NULL != main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_progressbar_unit_format_get
+ * @{
+ * @objective Positive test case checks if get the format string for a progress bar works properly and doesn't cause segmentation fault
+ * @n Input Data: the progressbar object
+ *
+ * @procedure
+ * @step 1 Set the format string for a given progress bar widget's units label to "%1.1f units"
+ * @step 2 Retrieve the format string for a given progress bar widget's units label
+ *
+ * @passcondition Returned value is equal to "%1.1f units" and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_unit_format_get_p)
+{
+   const char *str = NULL;
+
+   elm_progressbar_unit_format_set(progressbar, "%1.1f units");
+   str = elm_progressbar_unit_format_get(progressbar);
+   if ((str == NULL) || (strcmp(str, "%1.1f units") != 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_progressbar_unit_format_get
+ * @{
+ * @objective Negative Test case checks if function call with NULL
+ * instead of progressbar parameter doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the progressbar object
+ *
+ * @procedure
+ * @step 1 Call elm_progressbar_unit_format_get with NULL instead of the progressbar object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_unit_format_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(NULL, elm_progressbar_unit_format_get, progressbar) == TEST_FAIL)
+     {
+        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_progressbar_unit_format_set
+ * @{
+ * @objective Negative Test case checks if function call with NULL
+ * instead of progressbar parameter doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the progressbar object
+ * @li NULL
+ *
+ * @procedure
+ * @step 1 Call elm_progressbar_unit_format_set with NULL instead of the progressbar object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_unit_format_set_n)
+{
+   UNITEST_FUNC_NEG(elm_progressbar_unit_format_set, progressbar, "%1.1f units");
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_progressbar_unit_format_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_progressbar_unit_format_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_progressbar_unit_format_get_p);
+   tcase_add_test(tcase, utc_elm_progressbar_unit_format_get_n);
+   tcase_add_test(tcase, utc_elm_progressbar_unit_format_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_unit_format_set.c b/TC/elementary/progressbar/utc_elm_progressbar_unit_format_set.c
deleted file mode 100644 (file)
index c79ac10..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *progressbar = NULL;
-
-/**
- * @addtogroup elm_progressbar
- * @{
- * @defgroup elm_progressbar_unit_format_set elm_progressbar_unit_format_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new progress bar widget to the main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   progressbar = elm_progressbar_add(main_win);
-   if (progressbar == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if ( NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_progressbar_unit_format_set
- * @{
- * @objective Positive test case checks if set the format string for a progress bar
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the progressbar object
- * @li "%1.1f units"
- *
- * @procedure
- * @step 1 Set the format string for a given progress bar widget's units label to "%1.1f units"
- * @step 2 Retrieve the format string for a given progress bar widget's units label
- *
- * @passcondition Returned value is equal to "%1.1f units" and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_unit_format_set_p)
-{
-   const char *str = NULL;
-
-   if (progressbar == NULL)
-     {
-        return;
-     }
-   elm_progressbar_unit_format_set(progressbar, "%1.1f units");
-   str = elm_progressbar_unit_format_get(progressbar);
-   if ((str == NULL) || (strcmp(str, "%1.1f units") != 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_progressbar_unit_format_set
- * @{
- * @objective Negative Test case checks if function call with NULL
- * instead of progressbar parameter doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the progressbar object
- * @li NULL
- *
- * @procedure
- * @step 1 Call elm_progressbar_unit_format_set with NULL instead of the progressbar object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_unit_format_set_n)
-{
-   UNITEST_FUNC_NEG(elm_progressbar_unit_format_set, progressbar, "%1.1f units");
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_progressbar_unit_format_set()
-{
-   TCase *tcase = tcase_create("utc_elm_progressbar_unit_format_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_progressbar_unit_format_set_p);
-   tcase_add_test(tcase, utc_elm_progressbar_unit_format_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_value_get.c b/TC/elementary/progressbar/utc_elm_progressbar_value_get.c
deleted file mode 100644 (file)
index 1920ac9..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <math.h>
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *progressbar = NULL;
-
-/**
- * @addtogroup elm_progressbar
- * @{
- * @defgroup elm_progressbar_value_get elm_progressbar_value_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new progress bar widget to the main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   progressbar = elm_progressbar_add(main_win);
-   if (progressbar == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if ( NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_progressbar_value_get
- * @{
- * @objective Positive test case checks if get the progress value on a progress bar
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the progressbar object
- *
- * @procedure
- * @step 1 Set the progress value to 0.5
- * @step 2 Get the progress value
- *
- * @passcondition Returned value is equal to 0.5 in DBL_EPSILON range and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_value_get_p)
-{
-   double value = 0.0;
-
-   if (progressbar == NULL)
-     {
-        return;
-     }
-   elm_progressbar_value_set(progressbar, 0.5);
-   value = elm_progressbar_value_get(progressbar);
-   if (fabs(value - 0.5) > DBL_EPSILON)
-     {
-        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_progressbar_value_get
- * @{
- * @objective Negative Test case checks if function call with NULL
- * instead of progressbar parameter works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the progressbar object
- *
- * @procedure
- * @step 1 call elm_progressbar_value_get with NULL instead of the progressbar object
- *
- * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_value_get_n)
-{
-   double res = -1.0;
-
-   res = elm_progressbar_value_get(NULL);
-   if (fabs(res) > DBL_EPSILON)
-     {
-        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_progressbar_value_get()
-{
-   TCase *tcase = tcase_create("utc_elm_progressbar_value_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_progressbar_value_get_p);
-   tcase_add_test(tcase, utc_elm_progressbar_value_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_value_get_set.c b/TC/elementary/progressbar/utc_elm_progressbar_value_get_set.c
new file mode 100644 (file)
index 0000000..3051040
--- /dev/null
@@ -0,0 +1,173 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include <math.h>
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Evas_Object *progressbar = NULL;
+
+/**
+ * @addtogroup elm_progressbar
+ * @{
+ * @defgroup elm_progressbar_value_set elm_progressbar_value_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a new progress bar widget to the main window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   progressbar = elm_progressbar_add(main_win);
+   if (progressbar == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if ( NULL != main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_progressbar_value_set
+ * @{
+ * @objective Positive test case checks if set the progress value on a progress bar
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the progressbar object
+ * @li 0.5
+ *
+ * @procedure
+ * @step 1 Set the progress value to 0.5
+ * @step 2 Get the progress value
+ *
+ * @passcondition Returned value is equal to 0.5 in DBL_EPSILON range and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_value_set_p)
+{
+   double value = 0.0;
+
+   elm_progressbar_value_set(progressbar, 0.5);
+   value = elm_progressbar_value_get(progressbar);
+   if (fabs(value - 0.5) > DBL_EPSILON)
+     {
+        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_progressbar_value_set
+ * @{
+ * @objective Negative Test case 01 checks if function call with NULL
+ * instead of progressbar parameter doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the progressbar object
+ * @li 0.5
+ *
+ * @procedure
+ * @step 1 call elm_progressbar_value_set with NULL instead of the progressbar object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_value_set_n)
+{
+   elm_progressbar_value_set(NULL, 0.5);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_progressbar_value_set
+ * @{
+ * @objective Negative Test case 02 checks if function call with out of boundaries values for val parameter
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the progressbar object
+ * @li -1.0, 2.0
+ *
+ * @procedure
+ * @step 1 call elm_progressbar_value_set with out of boundaries values for val parameter
+ * @step 2 Get the progress value
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_value_set_n2)
+{
+   elm_progressbar_value_set(progressbar, -1.0);
+   if (elm_progressbar_value_get(progressbar) != 0)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_progressbar_value_set(progressbar, 2.0);
+   if (elm_progressbar_value_get(progressbar) != 1)
+     {
+        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_progressbar_value_get
+ * @{
+ * @objective Negative Test case checks if function call with NULL
+ * instead of progressbar parameter works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the progressbar object
+ *
+ * @procedure
+ * @step 1 call elm_progressbar_value_get with NULL instead of the progressbar object
+ *
+ * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_progressbar_value_get_n)
+{
+   double res = -1.0;
+
+   res = elm_progressbar_value_get(NULL);
+   if (fabs(res) > DBL_EPSILON)
+     {
+        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 * _utc_elm_progressbar_value_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_progressbar_value_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_progressbar_value_set_p);
+   tcase_add_test(tcase, utc_elm_progressbar_value_set_n);
+   tcase_add_test(tcase, utc_elm_progressbar_value_set_n2);
+   tcase_add_test(tcase, utc_elm_progressbar_value_get_n);
+   return tcase;
+}
diff --git a/TC/elementary/progressbar/utc_elm_progressbar_value_set.c b/TC/elementary/progressbar/utc_elm_progressbar_value_set.c
deleted file mode 100644 (file)
index 08e3c8d..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *progressbar = NULL;
-
-/**
- * @addtogroup elm_progressbar
- * @{
- * @defgroup elm_progressbar_value_set elm_progressbar_value_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new progress bar widget to the main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   progressbar = elm_progressbar_add(main_win);
-   if (progressbar == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a progressbar..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if ( NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_progressbar_value_set
- * @{
- * @objective Positive test case checks if set the progress value on a progress bar
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the progressbar object
- * @li 0.5
- *
- * @procedure
- * @step 1 Set the progress value to 0.5
- * @step 2 Get the progress value
- *
- * @passcondition Returned value is equal to 0.5 in DBL_EPSILON range and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_value_set_p)
-{
-   double value = 0.0;
-
-   if (progressbar == NULL)
-     {
-        return;
-     }
-   elm_progressbar_value_set(progressbar, 0.5);
-   value = elm_progressbar_value_get(progressbar);
-   if (fabs(value - 0.5) > DBL_EPSILON)
-     {
-        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_progressbar_value_set
- * @{
- * @objective Negative Test case 01 checks if function call with NULL
- * instead of progressbar parameter doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the progressbar object
- * @li 0.5
- *
- * @procedure
- * @step 1 call elm_progressbar_value_set with NULL instead of the progressbar object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_value_set_n)
-{
-   elm_progressbar_value_set(NULL, 0.5);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_progressbar_value_set
- * @{
- * @objective Negative Test case 02 checks if function call with out of boundaries values for val parameter
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li the progressbar object
- * @li -1.0, 2.0
- *
- * @procedure
- * @step 1 call elm_progressbar_value_set with out of boundaries values for val parameter
- * @step 2 Get the progress value
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_progressbar_value_set_n2)
-{
-   elm_progressbar_value_set(progressbar, -1.0);
-   if (elm_progressbar_value_get(progressbar) != 0)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_progressbar_value_set(progressbar, 2.0);
-   if (elm_progressbar_value_get(progressbar) != 1)
-     {
-        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_progressbar_value_set()
-{
-   TCase *tcase = tcase_create("utc_elm_progressbar_value_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_progressbar_value_set_p);
-   tcase_add_test(tcase, utc_elm_progressbar_value_set_n);
-   tcase_add_test(tcase, utc_elm_progressbar_value_set_n2);
-   return tcase;
-}