#include <libecal/libecal.h>
#include <libical/ical.h>
-#include "client-test-utils.h"
#include "e-test-server-utils.h"
static ETestServerClosure cal_closure =
{
ECalClient *cal;
GError *error = NULL;
+ gboolean supported;
cal = E_TEST_SERVER_UTILS_SERVICE (fixture, ECalClient);
- setup_cal (cal);
+ supported = e_client_check_refresh_supported (E_CLIENT (cal));
- g_print ("Refresh supported: %s\n", e_client_check_refresh_supported (E_CLIENT (cal)) ? "yes" : "no");
+ g_print ("Refresh supported: %s\n", supported ? "yes" : "no");
+ if (!supported)
+ return;
+ setup_cal (cal);
if (!e_client_refresh_sync (E_CLIENT (cal), NULL, &error))
g_error ("refresh sync: %s", error->message);
}
gconstpointer user_data)
{
ECalClient *cal;
+ gboolean supported;
cal = E_TEST_SERVER_UTILS_SERVICE (fixture, ECalClient);
- setup_cal (cal);
+ supported = e_client_check_refresh_supported (E_CLIENT (cal));
+ if (!supported)
+ return;
+ setup_cal (cal);
e_client_refresh (E_CLIENT (cal), NULL, async_refresh_result_ready, fixture->loop);
g_main_loop_run (fixture->loop);
}