From e56445a8a9dafabc81ca8715626f225b53262be5 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 8 Mar 2012 18:08:18 +0100 Subject: Fix mock camera All unit tests pass again --- test/test-all.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test-all.c b/test/test-all.c index f6e3002..941c0cd 100644 --- a/test/test-all.c +++ b/test/test-all.c @@ -87,7 +87,8 @@ static void test_recording_async(Fixture *fixture, gconstpointer data) uca_camera_start_recording(camera, &error); g_assert_no_error(error); - g_usleep(G_USEC_PER_SEC / ((gulong) (max_frame_rate / 2.0f))); + const gulong sleep_time = G_USEC_PER_SEC / ((gulong) (max_frame_rate / 2.0f)); + g_usleep(sleep_time); uca_camera_stop_recording(camera, &error); g_assert_no_error(error); -- cgit v1.2.3