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