From: <dg...@su...> - 2009-02-05 13:09:19
|
Author: bellmich Date: Thu Feb 5 14:07:25 2009 New Revision: 921 URL: http://libsyncml.opensync.org/changeset/921 Log: tolerate HTTP only builds (without OBEX support) Modified: trunk/tests/check_data_sync_api.c Modified: trunk/tests/check_data_sync_api.c ============================================================================== --- trunk/tests/check_data_sync_api.c Thu Feb 5 14:06:37 2009 (r920) +++ trunk/tests/check_data_sync_api.c Thu Feb 5 14:07:25 2009 (r921) @@ -408,8 +408,14 @@ SmlError *error = NULL; init_testbed("OBEX", "17002"); + /* register datastore + * the source must be identical if this is http + */ client_source = "dcim"; - server_source = "photos"; + if (!strcmp(transport, "OBEX")) + server_source = "photos"; + else + server_source = "dcim"; if (!smlDataSyncAddDatastore( client, "image/jpeg", |