[JIRA:N_SE-30007] Get profilesNum failed.
[platform/core/system/sync-agent.git] / test / client / oma-ds / oma_ds_client.c
index 0022ceb..a091f9e 100755 (executable)
@@ -373,6 +373,9 @@ static gboolean __test_delete_profile()
        if (result == SYNC_AGENT_DS_SUCCESS) {
                _DEBUG_VERBOSE("Success to delete profile!");
                is_test_successful = TRUE;
+       } else if (result == SYNC_AGENT_DS_SYNCHRONISING) {
+               _DEBUG_VERBOSE("profile is synchronising!!");
+               is_test_successful = FALSE;
        } else {
                _DEBUG_VERBOSE("Failed to delete profile!");
                is_test_successful = FALSE;
@@ -774,6 +777,8 @@ static gboolean __test_start_sync()
        sync_agent_ds_free_profile_info(profile_h);
 
        _INNER_FUNC_EXIT;
+
+       return is_test_successful;
 }
 
 static gboolean __test_stop_sync()
@@ -815,6 +820,8 @@ static gboolean __test_stop_sync()
        sync_agent_ds_free_profile_info(profile_h);
 
        _INNER_FUNC_EXIT;
+
+       return is_test_successful;
 }
 
 int _session_process_noti_cb(sync_agent_event_data_s * request, void *data)