elm_config: Update elm_config_font_hint_type_set test
authorse.osadchy <se.osadchy@samsung.com>
Wed, 19 Apr 2017 15:31:26 +0000 (18:31 +0300)
committerse.osadchy <se.osadchy@samsung.com>
Wed, 19 Apr 2017 15:32:29 +0000 (18:32 +0300)
Change-Id: I7534217712ac5f5037996df252b7ffc32accc05c
Signed-off-by: Sergey Osadchy <se.osadchy@samsung.com>
TC/elementary/general/utc_elm_config_font_hint_type_set.c

index 5604a5f9eef717a3702cd8583242651f22f229c1..00679ff6cc9ed3b5fa17ae1993f088ce205bfa21 100644 (file)
@@ -2,6 +2,7 @@
 #include <Elementary.h>
 
 static Eina_Bool startup_status = EINA_FALSE;
+Evas_Object *main_win = NULL;
 
 /**
  * @addtogroup elm_general
@@ -19,11 +20,23 @@ setup(void)
    {
       startup_status = EINA_TRUE;
    }
+
+   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);
 }
 
 static void
 teardown(void)
 {
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+     }
+
    elm_shutdown();
    printf(" ============ Cleanup ============ \n");
 }