From 85638c1b19b40960dc457fb0cd3bd3127195f600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 22 Jun 2017 15:06:23 +0800 Subject: [PATCH] tests: Check expected monitor mode count https://bugzilla.gnome.org/show_bug.cgi?id=765011 --- 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 ab3662cd4..0febac08d 100644 --- a/src/tests/monitor-unit-tests.c +++ b/src/tests/monitor-unit-tests.c @@ -617,6 +617,10 @@ check_monitor_configuration (MonitorTestCase *test_case) test_case->expect.monitors[i].height_mm); modes = meta_monitor_get_modes (monitor); + g_assert_cmpint (g_list_length (modes), + ==, + test_case->expect.monitors[i].n_modes); + for (l_mode = modes, j = 0; l_mode; l_mode = l_mode->next, j++) { MetaMonitorMode *mode = l_mode->data;