[PATCH 0/1] MR7897: kernel32/tests: Skip FreeConsole test at Windows 7.
Followup of 13c77bc9e6. [Test pattern page](https://test.winehq.org/data/patterns.html#kernel32:console) [Testbot run with this patch](https://testbot.winehq.org/JobDetails.pl?Key=158074) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7897
From: Bernhard Übelacker <bernhardu(a)mailbox.org> Followup of 13c77bc9e6. --- dlls/kernel32/tests/console.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/kernel32/tests/console.c b/dlls/kernel32/tests/console.c index 398b818776a..9266c68a128 100644 --- a/dlls/kernel32/tests/console.c +++ b/dlls/kernel32/tests/console.c @@ -4259,6 +4259,12 @@ static void test_FreeConsole(HANDLE input, HANDLE orig_output) UINT cp; BOOL ret; + if (!GetProcAddress(GetModuleHandleA("kernel32"), "SetProcessInformation")) + { + win_skip("Skip test below Windows 8\n"); + return; + } + ok(RtlGetCurrentPeb()->ProcessParameters->ConsoleHandle != NULL, "ConsoleHandle is NULL\n"); ok(!SetConsoleCtrlHandler(mydummych, FALSE), "dummy ctrl handler shouldn't be set\n"); ret = SetConsoleCtrlHandler(mydummych, TRUE); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7897
participants (1)
-
Bernhard Übelacker