diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2017-06-22 15:06:23 +0800 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2017-07-14 20:54:27 +0800 |
commit | 85638c1b19b40960dc457fb0cd3bd3127195f600 (patch) | |
tree | 450bfc222c0a81ef32ef5c3e28eed119146b1c5e /src/tests/monitor-unit-tests.c | |
parent | 2507e53d042ea702b1e64294c6ad8dbf06d2f6cd (diff) | |
download | mutter-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.c | 4 |
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; |