Commit f962bb00 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

kernel32/tests: Detect and handle a redirected stdin.

parent 50fe77a3
......@@ -2582,6 +2582,11 @@ static void test_ReadConsole(void)
SetLastError(0xdeadbeef);
ret = GetFileSize(std_input, NULL);
if (GetLastError() == 0xdeadbeef)
{
skip("stdin is redirected\n");
return;
}
ok(ret == INVALID_FILE_SIZE, "expected INVALID_FILE_SIZE, got %#x\n", ret);
ok(GetLastError() == ERROR_INVALID_HANDLE ||
GetLastError() == ERROR_INVALID_FUNCTION, /* Win 8, 10 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment