summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-03-08 18:08:18 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-03-08 18:08:18 +0100
commite56445a8a9dafabc81ca8715626f225b53262be5 (patch)
tree330da60f92237d95c213634be8006d0eacb58165 /test
parentd856ae8dc3ef07e6aa568cdbc2f5a2a8296778f3 (diff)
downloaduca-e56445a8a9dafabc81ca8715626f225b53262be5.tar.gz
uca-e56445a8a9dafabc81ca8715626f225b53262be5.tar.bz2
uca-e56445a8a9dafabc81ca8715626f225b53262be5.tar.xz
uca-e56445a8a9dafabc81ca8715626f225b53262be5.zip
Fix mock camera
All unit tests pass again
Diffstat (limited to 'test')
-rw-r--r--test/test-all.c3
1 files changed, 2 insertions, 1 deletions
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);