From: <svn...@op...> - 2009-10-23 14:58:41
|
Author: bellmich Date: Fri Oct 23 16:58:22 2009 New Revision: 1348 URL: http://libsyncml.opensync.org/changeset/1348 Log: a small fix to reduce the number of Solaris SEGVs Modified: trunk/tests/check_data_sync_api.c Modified: trunk/tests/check_data_sync_api.c ============================================================================== --- trunk/tests/check_data_sync_api.c Sun Oct 18 12:30:32 2009 (r1347) +++ trunk/tests/check_data_sync_api.c Fri Oct 23 16:58:22 2009 (r1348) @@ -628,8 +628,17 @@ SmlDataSyncTestClient *client = list->data; if (!sml_data_sync_run(client->client, &error)) goto error; + /* It is necessary to perform the first request alone + * because otherwise the test can fail on Solaris + * because Solaris uses an outdated libsoup 2.2. + */ + if (list == clients) { + /* first client => wait for Soup Session init */ + usleep(5000); + } } } else { + /* OBEX */ GList *list = clients; for (; list; list = list->next) { |