* @procedure
* @step 1 Get the theme search order for default theme
*
- * @passcondition Returned string contains "default" and there is no segmentation fault
+ * @passcondition Returned string of 1 to 256 size, not NULL and there is no segmentation fault
* @}
*/
START_TEST(utc_elm_theme_get_p)
{
const char * themeorder = NULL;
+ int len;
themeorder = elm_theme_get(NULL);
if (themeorder == NULL)
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, returned value is NULL..", __FILE__, __LINE__);
return;
}
- if (strstr(themeorder, "default") == NULL)
+ len = strlen(themeorder);
+ if (len < 0 || len > 256)
{
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, incorrect theme name has received..", __FILE__, __LINE__);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, incorrect theme size has received..", __FILE__, __LINE__);
return;
}
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);