[mutter] tests: Check expected monitor mode count
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] tests: Check expected monitor mode count
- Date: Fri, 14 Jul 2017 13:02:52 +0000 (UTC)
commit 85638c1b19b40960dc457fb0cd3bd3127195f600
Author: Jonas Ådahl <jadahl gmail com>
Date: Thu Jun 22 15:06:23 2017 +0800
tests: Check expected monitor mode count
https://bugzilla.gnome.org/show_bug.cgi?id=765011
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 ab3662c..0febac0 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]