Alex Henrie : kernel32/tests: Detect and handle a redirected stdin.
Alexandre Julliard
julliard at winehq.org
Mon Nov 6 14:37:38 CST 2017
Module: wine
Branch: master
Commit: f962bb0039c87c084214ca0bd4f40693db376195
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f962bb0039c87c084214ca0bd4f40693db376195
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Fri Nov 3 11:43:20 2017 +0100
kernel32/tests: Detect and handle a redirected stdin.
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/tests/console.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/kernel32/tests/console.c b/dlls/kernel32/tests/console.c
index a14bc45..926c052 100644
--- a/dlls/kernel32/tests/console.c
+++ b/dlls/kernel32/tests/console.c
@@ -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 */
More information about the wine-cvs
mailing list