[system-settings][UTC][Non-ACR]Add feature check about DEFAULT FONT TC 53/215853/1
authorjinwang.an <jinwang.an@samsung.com>
Thu, 17 Oct 2019 02:05:32 +0000 (11:05 +0900)
committerjinwang.an <jinwang.an@samsung.com>
Thu, 17 Oct 2019 02:06:09 +0000 (11:06 +0900)
Change-Id: I6f70319a8678018233856940027c08144d8c7554
Signed-off-by: jinwang.an <jinwang.an@samsung.com>
src/utc/system-settings/utc-system-settings.c

index 06206ce..a1fbe68 100755 (executable)
@@ -32,6 +32,7 @@
 #define SYSTEM_SETTINGS_NOTIFICATION_EMAIL_FEATURE "http://tizen.org/feature/systemsetting.notification_email"
 #define SYSTEM_SETTINGS_TELEPHONY_FEATURE "http://tizen.org/feature/network.telephony"
 #define SYSTEM_SETTINGS_INCOMING_CALL_FEATURE "http://tizen.org/feature/systemsetting.incoming_call"
+#define SYSTEM_SETTINGS_FONT_FEATURE "http://tizen.org/feature/systemsetting.font"
 
 
 #define IF_FEATURE_CHECK_SKIP(VAR,SYSTEM_SETTING_KEY, FEATURE)  \
@@ -109,10 +110,12 @@ int utc_system_settings_get_value_string_p1(void)
        char *value = NULL;
 
        int retcode = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE, &value);
-
-       assert_eq(retcode, SYSTEM_SETTINGS_ERROR_NONE);
-       assert(value != NULL);
-       free(value);
+       IF_FEATURE_CHECK_RETURN(retcode, SYSTEM_SETTINGS_FONT_FEATURE);
+       my_assert_ret(retcode);
+       if (retcode == SYSTEM_SETTINGS_ERROR_NONE) {
+               assert(value != NULL);
+               free(value);
+       }
 
        return 0;
 }
@@ -343,7 +346,7 @@ int utc_system_settings_get_value_bool_p2(void)
 /**
  * @testcase           utc_system_settings_get_value_bool_p3
  * @since_tizen                2.3
- * @description                
+ * @description
  * @description     check if SYSTEM_SETTINGS_KEY_SOUND_LOCK is able to get the property.
  */
 int utc_system_settings_get_value_bool_p3(void)
@@ -631,7 +634,7 @@ int utc_system_settings_set_changed_cb_p2(void)
        int retcode = system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE,
                                                                                                 utc_system_settings_changed_callback, NULL);
        IF_FEATURE_CHECK_RETURN(retcode, SYSTEM_SETTINGS_INCOMING_CALL_FEATURE);
-       my_assert_ret(retcode); 
+       my_assert_ret(retcode);
 
        return 0;
 }