From 57d07bd38bfd08f1dd9dbac365a55ed1505cb7ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 1 May 2017 12:07:44 +0800 Subject: [PATCH] tests/monitor-unit-tests: Check meta_monitor_is_active() https://bugzilla.gnome.org/show_bug.cgi?id=781723 --- src/tests/monitor-unit-tests.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/monitor-unit-tests.c b/src/tests/monitor-unit-tests.c index 7929a9c29..bbef527ef 100644 --- a/src/tests/monitor-unit-tests.c +++ b/src/tests/monitor-unit-tests.c @@ -583,6 +583,10 @@ check_monitor_configuration (MonitorTestCase *test_case) expected_current_mode_index)->data; g_assert (current_mode == expected_current_mode); + if (current_mode) + g_assert (meta_monitor_is_active (monitor)); + else + g_assert (!meta_monitor_is_active (monitor)); if (current_mode) {