summaryrefslogtreecommitdiff
path: root/src/tests/monitor-unit-tests.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2017-06-22 15:06:23 +0800
committerJonas Ådahl <jadahl@gmail.com>2017-07-14 20:54:27 +0800
commit85638c1b19b40960dc457fb0cd3bd3127195f600 (patch)
tree450bfc222c0a81ef32ef5c3e28eed119146b1c5e /src/tests/monitor-unit-tests.c
parent2507e53d042ea702b1e64294c6ad8dbf06d2f6cd (diff)
downloadmutter-85638c1b19b40960dc457fb0cd3bd3127195f600.tar.gz
tests: Check expected monitor mode count
https://bugzilla.gnome.org/show_bug.cgi?id=765011
Diffstat (limited to 'src/tests/monitor-unit-tests.c')
-rw-r--r--src/tests/monitor-unit-tests.c4
1 files changed, 4 insertions, 0 deletions
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;