Module: wine Branch: master Commit: 35bea756475b95e530de51f112ce6e4d36aec6b7 URL: https://gitlab.winehq.org/wine/wine/-/commit/35bea756475b95e530de51f112ce6e4...
Author: Eric Pouech epouech@codeweavers.com Date: Wed Nov 15 08:51:14 2023 +0100
msvcrt/tests: Extend test for invalid std handle on msvcrt init.
Signed-off-by: Eric Pouech epouech@codeweavers.com
---
dlls/msvcrt/tests/file.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/msvcrt/tests/file.c b/dlls/msvcrt/tests/file.c index 75d30648230..9357b215cd8 100644 --- a/dlls/msvcrt/tests/file.c +++ b/dlls/msvcrt/tests/file.c @@ -1896,6 +1896,9 @@ static void test_invalid_stdin_child( void ) handle = (HANDLE)_get_osfhandle(STDIN_FILENO); ok(handle == (HANDLE)-2, "handle = %p\n", handle); ok(errno == 0xdeadbeef, "errno = %d\n", errno); + handle = GetStdHandle(STD_INPUT_HANDLE); + todo_wine + ok((LONG_PTR)handle > 0, "Expecting passed handle to be untouched\n");
info = &__pioinfo[STDIN_FILENO/MSVCRT_FD_BLOCK_SIZE][STDIN_FILENO%MSVCRT_FD_BLOCK_SIZE]; ok(info->handle == (HANDLE)-2, "info->handle = %p\n", info->handle);