mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
monitor-unit-tests: Always reset CRTC transform ability
Changing the test monitor managers ability to rotate CRTCs in one test affected the next test. Avoid leaking such state by resetting it before each test. To continue passing, some tests needed to be updated regarding to still pass. https://bugzilla.gnome.org/show_bug.cgi?id=788915
This commit is contained in:
parent
050267fe74
commit
500c13ab6f
@ -5265,6 +5265,7 @@ meta_test_monitor_migrated_rotated (void)
|
||||
.crtcs = {
|
||||
{
|
||||
.current_mode = 0,
|
||||
.transform = META_MONITOR_TRANSFORM_270
|
||||
}
|
||||
},
|
||||
.n_crtcs = 1,
|
||||
@ -5549,6 +5550,7 @@ meta_test_monitor_migrated_wiggle (void)
|
||||
.crtcs = {
|
||||
{
|
||||
.current_mode = 0,
|
||||
.transform = META_MONITOR_TRANSFORM_90
|
||||
}
|
||||
},
|
||||
.n_crtcs = 1,
|
||||
@ -5622,8 +5624,12 @@ test_case_setup (void **fixture,
|
||||
MetaBackend *backend = meta_get_backend ();
|
||||
MetaMonitorManager *monitor_manager =
|
||||
meta_backend_get_monitor_manager (backend);
|
||||
MetaMonitorManagerTest *monitor_manager_test =
|
||||
META_MONITOR_MANAGER_TEST (monitor_manager);
|
||||
MetaMonitorConfigManager *config_manager = monitor_manager->config_manager;
|
||||
|
||||
meta_monitor_manager_test_set_handles_transforms (monitor_manager_test,
|
||||
TRUE);
|
||||
meta_monitor_config_manager_set_current (config_manager, NULL);
|
||||
meta_monitor_config_manager_clear_history (config_manager);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user