diff options
author | Timo Dritschler <timo.dritschler@kit.edu> | 2015-03-02 16:17:15 +0100 |
---|---|---|
committer | Timo Dritschler <timo.dritschler@kit.edu> | 2015-03-09 11:12:26 +0100 |
commit | c9b2ba6558c8212e59bd3701a2e26744caead33b (patch) | |
tree | 6d5f74c7e7a058e1bdd518cf4aab1dac4bc652b3 | |
parent | 453701eddba38052a466e91d614fd999b52bca4a (diff) | |
download | uca-c9b2ba6558c8212e59bd3701a2e26744caead33b.tar.gz uca-c9b2ba6558c8212e59bd3701a2e26744caead33b.tar.bz2 uca-c9b2ba6558c8212e59bd3701a2e26744caead33b.tar.xz uca-c9b2ba6558c8212e59bd3701a2e26744caead33b.zip |
Added test case for 'no write during acquisition' policy
-rw-r--r-- | test/test-mock.c | 6 |
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); } |