From c9b2ba6558c8212e59bd3701a2e26744caead33b Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Mon, 2 Mar 2015 16:17:15 +0100 Subject: Added test case for 'no write during acquisition' policy --- test/test-mock.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3