Zhiyi Zhang (@zhiyi) commented about dlls/user32/tests/monitor.c:
- process1 = test_child_process_ChangeDisplaySettingsEx(myARGV[0], devices[0].name, exit_event1_name);
- /* Verify that the settings are restored to the current registry settings */
- for (device = 0; device < device_count; ++device)
- {
memset(&dm, 0, sizeof(dm));
dm.dmSize = sizeof(dm);
dm.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT;
dm.dmPelsWidth = 800;
dm.dmPelsHeight = 600;
res = ChangeDisplaySettingsExA(devices[device].name, &dm, NULL, CDS_UPDATEREGISTRY | CDS_NORESET, NULL);
ok(res == DISP_CHANGE_SUCCESSFUL, "ChangeDisplaySettingsExA %s returned %ld.\n", devices[device].name, res);
- }
- SetEvent(exit_event0);
- wait_result = WaitForSingleObject(process0, 10000);
5s should be enough.