mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 16:40:41 -05:00
monitor-test-utils: Add debug friendly statements during tests
Monitor configuration check tests can be very complex and in case of failures we can't easily catch where a failure happened without entering in debug mode, something that isn't always an option in CI or external builders. So add more debug statements in configuration check functions and use macros to ensure that we print the caller function and location on more complex check functions. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/522>
This commit is contained in:
parent
37e154c832
commit
3baf750e42
@ -28,6 +28,12 @@
|
|||||||
|
|
||||||
#define META_TEST_CLIENT_ERROR meta_test_client_error_quark ()
|
#define META_TEST_CLIENT_ERROR meta_test_client_error_quark ()
|
||||||
|
|
||||||
|
#define META_TEST_LOG_CALL(description, call) \
|
||||||
|
G_STMT_START { \
|
||||||
|
g_debug ("%s: %s: %s", G_STRFUNC, G_STRLOC, description); \
|
||||||
|
call; \
|
||||||
|
} G_STMT_END
|
||||||
|
|
||||||
typedef enum _MetaClientError
|
typedef enum _MetaClientError
|
||||||
{
|
{
|
||||||
META_TEST_CLIENT_ERROR_BAD_COMMAND,
|
META_TEST_CLIENT_ERROR_BAD_COMMAND,
|
||||||
|
@ -380,6 +380,7 @@ check_monitor_configuration (MonitorTestCaseExpect *expect)
|
|||||||
MetaMonitorMode *expected_current_mode;
|
MetaMonitorMode *expected_current_mode;
|
||||||
|
|
||||||
outputs = meta_monitor_get_outputs (monitor);
|
outputs = meta_monitor_get_outputs (monitor);
|
||||||
|
g_debug ("Checking monitor %d", i);
|
||||||
|
|
||||||
g_assert_cmpint ((int) g_list_length (outputs),
|
g_assert_cmpint ((int) g_list_length (outputs),
|
||||||
==,
|
==,
|
||||||
@ -435,6 +436,8 @@ check_monitor_configuration (MonitorTestCaseExpect *expect)
|
|||||||
refresh_rate = meta_monitor_mode_get_refresh_rate (mode);
|
refresh_rate = meta_monitor_mode_get_refresh_rate (mode);
|
||||||
flags = meta_monitor_mode_get_flags (mode);
|
flags = meta_monitor_mode_get_flags (mode);
|
||||||
|
|
||||||
|
g_debug ("Checking mode %dx%d @ %f", width, height, refresh_rate);
|
||||||
|
|
||||||
g_assert_cmpint (width,
|
g_assert_cmpint (width,
|
||||||
==,
|
==,
|
||||||
expect->monitors[i].modes[j].width);
|
expect->monitors[i].modes[j].width);
|
||||||
@ -553,6 +556,8 @@ check_monitor_configuration (MonitorTestCaseExpect *expect)
|
|||||||
MetaCrtc *crtc = l->data;
|
MetaCrtc *crtc = l->data;
|
||||||
const MetaCrtcConfig *crtc_config = meta_crtc_get_config (crtc);
|
const MetaCrtcConfig *crtc_config = meta_crtc_get_config (crtc);
|
||||||
|
|
||||||
|
g_debug ("Checking CRTC %d", i);
|
||||||
|
|
||||||
if (expect->crtcs[i].current_mode == -1)
|
if (expect->crtcs[i].current_mode == -1)
|
||||||
{
|
{
|
||||||
g_assert_null (meta_crtc_get_outputs (crtc));
|
g_assert_null (meta_crtc_get_outputs (crtc));
|
||||||
@ -561,16 +566,20 @@ check_monitor_configuration (MonitorTestCaseExpect *expect)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
MetaCrtcMode *expected_current_mode;
|
MetaCrtcMode *expected_current_mode;
|
||||||
|
const GList *outputs = meta_crtc_get_outputs (crtc);
|
||||||
const GList *l_output;
|
const GList *l_output;
|
||||||
MetaRendererView *view;
|
MetaRendererView *view;
|
||||||
cairo_rectangle_int_t view_layout;
|
cairo_rectangle_int_t view_layout;
|
||||||
|
|
||||||
for (l_output = meta_crtc_get_outputs (crtc);
|
for (l_output = outputs;
|
||||||
l_output;
|
l_output;
|
||||||
l_output = l_output->next)
|
l_output = l_output->next)
|
||||||
{
|
{
|
||||||
MetaOutput *output = l_output->data;
|
MetaOutput *output = l_output->data;
|
||||||
|
|
||||||
|
g_debug ("Checking CRTC Output %d",
|
||||||
|
g_list_index ((GList *) outputs, output));
|
||||||
|
|
||||||
g_assert (meta_output_get_assigned_crtc (output) == crtc);
|
g_assert (meta_output_get_assigned_crtc (output) == crtc);
|
||||||
g_assert_null (g_list_find (l_output->next, output));
|
g_assert_null (g_list_find (l_output->next, output));
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#include "tests/meta-monitor-manager-test.h"
|
#include "tests/meta-monitor-manager-test.h"
|
||||||
|
#include "tests/meta-test-utils.h"
|
||||||
#include "backends/meta-crtc.h"
|
#include "backends/meta-crtc.h"
|
||||||
#include "backends/meta-monitor.h"
|
#include "backends/meta-monitor.h"
|
||||||
#include "backends/meta-output.h"
|
#include "backends/meta-output.h"
|
||||||
|
@ -258,7 +258,8 @@ destroy_monitor_test_clients (void)
|
|||||||
static void
|
static void
|
||||||
meta_test_monitor_initial_linear_config (void)
|
meta_test_monitor_initial_linear_config (void)
|
||||||
{
|
{
|
||||||
check_monitor_configuration (&initial_test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&initial_test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -335,7 +336,8 @@ meta_test_monitor_one_disconnected_linear_config (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -454,7 +456,8 @@ meta_test_monitor_one_off_linear_config (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -575,7 +578,8 @@ meta_test_monitor_preferred_linear_config (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -705,7 +709,8 @@ meta_test_monitor_tiled_linear_config (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -879,7 +884,8 @@ meta_test_monitor_tiled_non_preferred_linear_config (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1029,7 +1035,8 @@ meta_test_monitor_tiled_non_main_origin_linear_config (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1176,7 +1183,8 @@ meta_test_monitor_hidpi_linear_config (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1327,7 +1335,8 @@ meta_test_monitor_suggested_config (void)
|
|||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
|
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1485,7 +1494,8 @@ meta_test_monitor_suggested_config_overlapping (void)
|
|||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
g_test_assert_expected_messages ();
|
g_test_assert_expected_messages ();
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -1641,7 +1651,8 @@ meta_test_monitor_suggested_config_not_adjacent (void)
|
|||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
g_test_assert_expected_messages ();
|
g_test_assert_expected_messages ();
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -1796,7 +1807,8 @@ meta_test_monitor_suggested_config_multi_dpi (void)
|
|||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
g_test_assert_expected_messages();
|
g_test_assert_expected_messages();
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -1922,7 +1934,8 @@ meta_test_monitor_limited_crtcs (void)
|
|||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
g_test_assert_expected_messages ();
|
g_test_assert_expected_messages ();
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2060,7 +2073,8 @@ meta_test_monitor_lid_switch_config (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), TRUE);
|
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), TRUE);
|
||||||
@ -2078,7 +2092,8 @@ meta_test_monitor_lid_switch_config (void)
|
|||||||
test_case.expect.crtcs[0].current_mode = -1;
|
test_case.expect.crtcs[0].current_mode = -1;
|
||||||
test_case.expect.crtcs[1].x = 0;
|
test_case.expect.crtcs[1].x = 0;
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), FALSE);
|
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), FALSE);
|
||||||
@ -2099,7 +2114,8 @@ meta_test_monitor_lid_switch_config (void)
|
|||||||
test_case.expect.crtcs[1].current_mode = 0;
|
test_case.expect.crtcs[1].current_mode = 0;
|
||||||
test_case.expect.crtcs[1].x = 1024;
|
test_case.expect.crtcs[1].x = 1024;
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2238,7 +2254,8 @@ meta_test_monitor_lid_opened_config (void)
|
|||||||
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), TRUE);
|
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), TRUE);
|
||||||
|
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), FALSE);
|
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), FALSE);
|
||||||
@ -2252,7 +2269,8 @@ meta_test_monitor_lid_opened_config (void)
|
|||||||
test_case.expect.crtcs[1].current_mode = 0;
|
test_case.expect.crtcs[1].current_mode = 0;
|
||||||
test_case.expect.crtcs[1].x = 0;
|
test_case.expect.crtcs[1].x = 0;
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2346,7 +2364,8 @@ meta_test_monitor_lid_closed_no_external (void)
|
|||||||
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), TRUE);
|
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), TRUE);
|
||||||
|
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2490,7 +2509,8 @@ meta_test_monitor_lid_closed_with_hotplugged_external (void)
|
|||||||
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), FALSE);
|
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), FALSE);
|
||||||
|
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
/* External monitor connected */
|
/* External monitor connected */
|
||||||
@ -2506,7 +2526,8 @@ meta_test_monitor_lid_closed_with_hotplugged_external (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
/* Lid closed */
|
/* Lid closed */
|
||||||
@ -2522,7 +2543,8 @@ meta_test_monitor_lid_closed_with_hotplugged_external (void)
|
|||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), TRUE);
|
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), TRUE);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2547,7 +2569,8 @@ meta_test_monitor_lid_closed_with_hotplugged_external (void)
|
|||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), FALSE);
|
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), FALSE);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
/* External monitor disconnected */
|
/* External monitor disconnected */
|
||||||
@ -2562,7 +2585,8 @@ meta_test_monitor_lid_closed_with_hotplugged_external (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
/* Lid closed */
|
/* Lid closed */
|
||||||
@ -2575,7 +2599,8 @@ meta_test_monitor_lid_closed_with_hotplugged_external (void)
|
|||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), TRUE);
|
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), TRUE);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
/* Lid opened */
|
/* Lid opened */
|
||||||
@ -2584,7 +2609,8 @@ meta_test_monitor_lid_closed_with_hotplugged_external (void)
|
|||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), FALSE);
|
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), FALSE);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2685,19 +2711,22 @@ meta_test_monitor_lid_scaled_closed_opened (void)
|
|||||||
MONITOR_TEST_FLAG_NONE);
|
MONITOR_TEST_FLAG_NONE);
|
||||||
set_custom_monitor_config ("lid-scale.xml");
|
set_custom_monitor_config ("lid-scale.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), TRUE);
|
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), TRUE);
|
||||||
meta_monitor_manager_lid_is_closed_changed (monitor_manager);
|
meta_monitor_manager_lid_is_closed_changed (monitor_manager);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), FALSE);
|
meta_backend_test_set_is_lid_closed (META_BACKEND_TEST (backend), FALSE);
|
||||||
meta_monitor_manager_lid_is_closed_changed (monitor_manager);
|
meta_monitor_manager_lid_is_closed_changed (monitor_manager);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2729,7 +2758,8 @@ meta_test_monitor_no_outputs (void)
|
|||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
|
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
if (!meta_test_client_do (x11_monitor_test_client, &error,
|
if (!meta_test_client_do (x11_monitor_test_client, &error,
|
||||||
@ -2751,7 +2781,8 @@ meta_test_monitor_no_outputs (void)
|
|||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
|
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2842,7 +2873,8 @@ meta_test_monitor_underscanning_config (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2938,7 +2970,8 @@ meta_test_monitor_preferred_non_first_mode (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2972,7 +3005,8 @@ meta_test_monitor_non_upright_panel (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3111,11 +3145,13 @@ meta_test_monitor_switch_external_without_external (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
|
|
||||||
meta_monitor_manager_switch_config (monitor_manager,
|
meta_monitor_manager_switch_config (monitor_manager,
|
||||||
META_MONITOR_SWITCH_CONFIG_EXTERNAL);
|
META_MONITOR_SWITCH_CONFIG_EXTERNAL);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
|
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
@ -3257,7 +3293,8 @@ meta_test_monitor_custom_vertical_config (void)
|
|||||||
set_custom_monitor_config ("vertical.xml");
|
set_custom_monitor_config ("vertical.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3398,7 +3435,8 @@ meta_test_monitor_custom_primary_config (void)
|
|||||||
set_custom_monitor_config ("primary.xml");
|
set_custom_monitor_config ("primary.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3491,7 +3529,8 @@ meta_test_monitor_custom_underscanning_config (void)
|
|||||||
set_custom_monitor_config ("underscanning.xml");
|
set_custom_monitor_config ("underscanning.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3589,7 +3628,8 @@ meta_test_monitor_custom_scale_config (void)
|
|||||||
set_custom_monitor_config ("scale.xml");
|
set_custom_monitor_config ("scale.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3687,7 +3727,8 @@ meta_test_monitor_custom_fractional_scale_config (void)
|
|||||||
set_custom_monitor_config ("fractional-scale.xml");
|
set_custom_monitor_config ("fractional-scale.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3785,7 +3826,8 @@ meta_test_monitor_custom_high_precision_fractional_scale_config (void)
|
|||||||
set_custom_monitor_config ("high-precision-fractional-scale.xml");
|
set_custom_monitor_config ("high-precision-fractional-scale.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3923,7 +3965,8 @@ meta_test_monitor_custom_tiled_config (void)
|
|||||||
set_custom_monitor_config ("tiled.xml");
|
set_custom_monitor_config ("tiled.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4081,7 +4124,8 @@ meta_test_monitor_custom_tiled_custom_resolution_config (void)
|
|||||||
set_custom_monitor_config ("tiled-custom-resolution.xml");
|
set_custom_monitor_config ("tiled-custom-resolution.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4256,7 +4300,8 @@ meta_test_monitor_custom_tiled_non_preferred_config (void)
|
|||||||
set_custom_monitor_config ("non-preferred-tiled-custom-resolution.xml");
|
set_custom_monitor_config ("non-preferred-tiled-custom-resolution.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4385,7 +4430,8 @@ meta_test_monitor_custom_mirrored_config (void)
|
|||||||
set_custom_monitor_config ("mirrored.xml");
|
set_custom_monitor_config ("mirrored.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4521,7 +4567,8 @@ meta_test_monitor_custom_first_rotated_config (void)
|
|||||||
MONITOR_TEST_FLAG_NONE);
|
MONITOR_TEST_FLAG_NONE);
|
||||||
set_custom_monitor_config ("first-rotated.xml");
|
set_custom_monitor_config ("first-rotated.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4658,7 +4705,8 @@ meta_test_monitor_custom_second_rotated_config (void)
|
|||||||
MONITOR_TEST_FLAG_NONE);
|
MONITOR_TEST_FLAG_NONE);
|
||||||
set_custom_monitor_config ("second-rotated.xml");
|
set_custom_monitor_config ("second-rotated.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4851,7 +4899,8 @@ meta_test_monitor_custom_second_rotated_tiled_config (void)
|
|||||||
MONITOR_TEST_FLAG_NONE);
|
MONITOR_TEST_FLAG_NONE);
|
||||||
set_custom_monitor_config ("second-rotated-tiled.xml");
|
set_custom_monitor_config ("second-rotated-tiled.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5044,7 +5093,8 @@ meta_test_monitor_custom_second_rotated_nonnative_tiled_config (void)
|
|||||||
MONITOR_TEST_FLAG_NONE);
|
MONITOR_TEST_FLAG_NONE);
|
||||||
set_custom_monitor_config ("second-rotated-tiled.xml");
|
set_custom_monitor_config ("second-rotated-tiled.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5195,7 +5245,8 @@ meta_test_monitor_custom_second_rotated_nonnative_config (void)
|
|||||||
MONITOR_TEST_FLAG_NONE);
|
MONITOR_TEST_FLAG_NONE);
|
||||||
set_custom_monitor_config ("second-rotated.xml");
|
set_custom_monitor_config ("second-rotated.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5306,7 +5357,8 @@ meta_test_monitor_custom_interlaced_config (void)
|
|||||||
set_custom_monitor_config ("interlaced.xml");
|
set_custom_monitor_config ("interlaced.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5436,7 +5488,8 @@ meta_test_monitor_custom_oneoff (void)
|
|||||||
set_custom_monitor_config ("oneoff.xml");
|
set_custom_monitor_config ("oneoff.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5573,7 +5626,8 @@ meta_test_monitor_custom_lid_switch_config (void)
|
|||||||
MONITOR_TEST_FLAG_NONE);
|
MONITOR_TEST_FLAG_NONE);
|
||||||
set_custom_monitor_config ("lid-switch.xml");
|
set_custom_monitor_config ("lid-switch.xml");
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
/* External monitor connected */
|
/* External monitor connected */
|
||||||
@ -5595,7 +5649,8 @@ meta_test_monitor_custom_lid_switch_config (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NONE);
|
MONITOR_TEST_FLAG_NONE);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
/* Lid was closed */
|
/* Lid was closed */
|
||||||
@ -5615,7 +5670,8 @@ meta_test_monitor_custom_lid_switch_config (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NONE);
|
MONITOR_TEST_FLAG_NONE);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
/* Lid was opened */
|
/* Lid was opened */
|
||||||
@ -5638,7 +5694,8 @@ meta_test_monitor_custom_lid_switch_config (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NONE);
|
MONITOR_TEST_FLAG_NONE);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5764,7 +5821,8 @@ meta_test_monitor_migrated_rotated (void)
|
|||||||
|
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
expected_path = g_test_get_filename (G_TEST_DIST,
|
expected_path = g_test_get_filename (G_TEST_DIST,
|
||||||
@ -5909,7 +5967,8 @@ meta_test_monitor_migrated_wiggle_discard (void)
|
|||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
g_test_assert_expected_messages ();
|
g_test_assert_expected_messages ();
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
expected_path = g_test_get_filename (G_TEST_DIST,
|
expected_path = g_test_get_filename (G_TEST_DIST,
|
||||||
@ -6175,7 +6234,8 @@ meta_test_monitor_migrated_wiggle (void)
|
|||||||
|
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
|
|
||||||
check_monitor_configuration (&test_case.expect);
|
META_TEST_LOG_CALL ("Checking monitor configuration",
|
||||||
|
check_monitor_configuration (&test_case.expect));
|
||||||
check_monitor_test_clients_state ();
|
check_monitor_test_clients_state ();
|
||||||
|
|
||||||
expected_path = g_test_get_filename (G_TEST_DIST,
|
expected_path = g_test_get_filename (G_TEST_DIST,
|
||||||
@ -6472,8 +6532,9 @@ meta_test_monitor_supported_integer_scales (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_scales (&test_case.expect,
|
META_TEST_LOG_CALL ("Checking monitor scaling values",
|
||||||
META_MONITOR_SCALES_CONSTRAINT_NO_FRAC);
|
check_monitor_scales (&test_case.expect,
|
||||||
|
META_MONITOR_SCALES_CONSTRAINT_NO_FRAC));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -6783,7 +6844,9 @@ meta_test_monitor_supported_fractional_scales (void)
|
|||||||
test_setup = create_monitor_test_setup (&test_case.setup,
|
test_setup = create_monitor_test_setup (&test_case.setup,
|
||||||
MONITOR_TEST_FLAG_NO_STORED);
|
MONITOR_TEST_FLAG_NO_STORED);
|
||||||
emulate_hotplug (test_setup);
|
emulate_hotplug (test_setup);
|
||||||
check_monitor_scales (&test_case.expect, META_MONITOR_SCALES_CONSTRAINT_NONE);
|
META_TEST_LOG_CALL ("Checking monitor scaling values",
|
||||||
|
check_monitor_scales (&test_case.expect,
|
||||||
|
META_MONITOR_SCALES_CONSTRAINT_NONE));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user