1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

msvcrt/tests: Extend test for invalid std handle on msvcrt init.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
Eric Pouech 2023-11-15 08:51:14 +01:00 committed by Alexandre Julliard
parent 4121a29b50
commit 35bea75647

View file

@ -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);