Michael Stefaniuc : kernel32/tests: Actually test a return value ( PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Mar 4 09:22:17 CST 2015
Module: wine
Branch: master
Commit: dbe6c5576d6e4b527d493a82c4cae6258e6ed365
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dbe6c5576d6e4b527d493a82c4cae6258e6ed365
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Mar 4 09:39:10 2015 +0100
kernel32/tests: Actually test a return value (PVS-Studio).
---
dlls/kernel32/tests/pipe.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/kernel32/tests/pipe.c b/dlls/kernel32/tests/pipe.c
index cf02e15..b115ed8 100644
--- a/dlls/kernel32/tests/pipe.c
+++ b/dlls/kernel32/tests/pipe.c
@@ -2111,6 +2111,7 @@ static void test_readfileex_pending(void)
num_bytes = 0xdeadbeef;
SetLastError(0xdeadbeef);
ret = ReadFile(server, read_buf, 0, &num_bytes, &overlapped);
+ ok(!ret, "ReadFile should fail\n");
todo_wine
ok(GetLastError() == ERROR_IO_PENDING, "expected ERROR_IO_PENDING, got %d\n", GetLastError());
ok(num_bytes == 0, "bytes %u\n", num_bytes);
More information about the wine-cvs
mailing list