elm_photocam: clean up utc 39/202239/1
authorYeongjong Lee <yj34.lee@samsung.com>
Tue, 26 Mar 2019 07:49:48 +0000 (16:49 +0900)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 26 Mar 2019 07:54:10 +0000 (16:54 +0900)
Change-Id: I9e2258c3c58fb3d997d2fb9f5fd82cce76ada82b

TC/elementary/photocam/utc_elm_photocam_file_get_set.c

index d54dedad8e5796df069e5c01fc4d9e0448e7b39b..b22aed65d5d531edcbe25d2741b19d67385fef87 100644 (file)
@@ -108,15 +108,16 @@ END_TEST
 START_TEST(utc_elm_photocam_file_set_p2)
 {
    Evas_Load_Error load_result = EVAS_LOAD_ERROR_GENERIC;
-   Evas_Load_Error load_result2 = EVAS_LOAD_ERROR_GENERIC;
    const char *file = NULL;
 
    load_result = elm_photocam_file_set(photocam2, "non_existing.png");
-      load_result2 = elm_photocam_file_set(NULL, "./photocam/tizen_efl.png");
-   if ((load_result != EVAS_LOAD_ERROR_DOES_NOT_EXIST) ||
-            (load_result2 != EVAS_LOAD_ERROR_NONE)) {
-      ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-   }
+   if (load_result != EVAS_LOAD_ERROR_DOES_NOT_EXIST)
+     ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+
+   load_result = elm_photocam_file_set(NULL, "./photocam/tizen_efl.png");
+   if (load_result == EVAS_LOAD_ERROR_NONE)
+     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