25 Nov
2024
25 Nov
'24
9:47 a.m.
eric pouech (@epo) commented about programs/timeout/tests/timeout.c:
+ GetExitCodeProcess(process_info.hProcess, &exitcode); + CloseHandle(process_info.hProcess); + CloseHandle(process_info.hThread); + ok_(file, line)(exitcode == exitcode_expected, "Expected exitcode %d, got %ld\n", + exitcode_expected, exitcode); +} + +static void test_basic(void) +{ + /* No options */ + run_timeout_stdin("", 1); + + /* /? */ + run_timeout_stdin("/?", 0); + + if (VerifyConsoleIoHandle(GetStdHandle(STD_INPUT_HANDLE))) The VerifyConsoleIoHandle (is previous comments) is meant for the main program, not the tests
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6869#note_88794