utc_elm_layout: fix wrong tc code for elm_layout_file_set/get 98/202198/1
authorHermet Park <hermetpark@gmail.com>
Tue, 26 Mar 2019 04:35:52 +0000 (13:35 +0900)
committerHermet Park <hermetpark@gmail.com>
Tue, 26 Mar 2019 04:35:52 +0000 (13:35 +0900)
In efl, objects allow to get null path to unload the file,
it's not the false case even it returns true there.

Change-Id: If961c68bb3c27fdfd9a17f44476d053514ed9527

TC/elementary/layout/utc_elm_layout_file_get_set.c

index 2735609d24d3a814f961acade700328629dde88f..54dc73f34e393e8fafa8e32530a18a5597d4adcc 100644 (file)
@@ -113,11 +113,16 @@ END_TEST
  */
 START_TEST(utc_elm_layout_file_set_n)
 {
+   if (elm_layout_file_set(NULL, FILE, GROUP))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
 
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_layout_file_set, layout, FILE, GROUP))
+   if (elm_layout_file_set(layout, FILE, NULL))
      {
         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