summaryrefslogtreecommitdiffstats
path: root/test/test-mock.c
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2015-03-02 16:17:15 +0100
committerTimo Dritschler <timo.dritschler@kit.edu>2015-03-09 11:12:26 +0100
commitc9b2ba6558c8212e59bd3701a2e26744caead33b (patch)
tree6d5f74c7e7a058e1bdd518cf4aab1dac4bc652b3 /test/test-mock.c
parent453701eddba38052a466e91d614fd999b52bca4a (diff)
downloadlibuca-c9b2ba6558c8212e59bd3701a2e26744caead33b.tar.gz
libuca-c9b2ba6558c8212e59bd3701a2e26744caead33b.tar.bz2
libuca-c9b2ba6558c8212e59bd3701a2e26744caead33b.tar.xz
libuca-c9b2ba6558c8212e59bd3701a2e26744caead33b.zip
Added test case for 'no write during acquisition' policy
Diffstat (limited to 'test/test-mock.c')
-rw-r--r--test/test-mock.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test-mock.c b/test/test-mock.c
index 5573666..3fc8988 100644
--- a/test/test-mock.c
+++ b/test/test-mock.c
@@ -285,8 +285,12 @@ test_can_be_written (Fixture *fixture, gconstpointer data)
uca_camera_set_writable (fixture->camera, "roi-height", TRUE);
uca_camera_start_recording (fixture->camera, &error);
g_assert_no_error (error);
-
g_object_set (fixture->camera, "roi-height", 128, NULL);
+#if (GLIB_CHECK_VERSION (2, 34, 0))
+ g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, "Property 'exposure-time' cant be changed during acquisition");
+ g_object_set (fixture->camera, "exposure-time", 1.0, NULL);
+ g_test_assert_expected_messages ();
+#endif
uca_camera_stop_recording (fixture->camera, &error);
g_assert_no_error (error);
}