From: <dg...@su...> - 2009-01-13 20:18:34
|
Author: friedrich.beckmann Date: Tue Jan 13 21:17:46 2009 New Revision: 5130 URL: http://www.opensync.org/changeset/5130 Log: windows port - replaced sleep with g_usleep Modified: trunk/tests/mock-plugin/mock_sync.c Modified: trunk/tests/mock-plugin/mock_sync.c ============================================================================== --- trunk/tests/mock-plugin/mock_sync.c Tue Jan 13 18:39:02 2009 (r5129) +++ trunk/tests/mock-plugin/mock_sync.c Tue Jan 13 21:17:46 2009 (r5130) @@ -337,7 +337,7 @@ osync_assert(osync_file_read(filename, &(file->data), &(file->size), &error)); if (mock_get_error(info->memberid, "SLOW_REPORT")) - sleep(1); + g_usleep(1*G_USEC_PER_SEC); odata = osync_data_new((char *)file, sizeof(OSyncFileFormat), directory->objformat, &error); osync_assert(odata); @@ -391,7 +391,7 @@ } if (mock_get_error(info->memberid, "GET_CHANGES_TIMEOUT2")) - sleep(8); + g_usleep(8*G_USEC_PER_SEC); if (osync_objtype_sink_get_slowsync(sink)) { osync_trace(TRACE_INTERNAL, "Slow sync requested"); |