=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: msvcrt/tests: Don' t test function directly when reporting errno.
Alexandre Julliard
julliard at winehq.org
Thu Dec 20 12:39:56 CST 2012
Module: wine
Branch: master
Commit: 61a12130788569e91913808d58d5e5b32ae83add
URL: http://source.winehq.org/git/wine.git/?a=commit;h=61a12130788569e91913808d58d5e5b32ae83add
Author: André Hentschel <nerv at dawncrow.de>
Date: Wed Dec 19 20:33:23 2012 +0100
msvcrt/tests: Don't test function directly when reporting errno.
---
dlls/msvcrt/tests/data.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcrt/tests/data.c b/dlls/msvcrt/tests/data.c
index 0723093..cdd65a7 100644
--- a/dlls/msvcrt/tests/data.c
+++ b/dlls/msvcrt/tests/data.c
@@ -197,12 +197,14 @@ static void test___getmainargs_parent(char *name)
STARTUPINFO startup;
PROCESS_INFORMATION proc;
FILE *f;
+ int ret;
ok(GetTempPathA(MAX_PATH, tmppath) != 0, "GetTempPath failed\n");
sprintf(cmdline, "%s data %s*\\* %swine_test/*", name, tmppath, tmppath);
sprintf(filepath, "%swine_test", tmppath);
- ok(!_mkdir(filepath), "_mkdir failed: %d\n", errno);
+ ret = _mkdir(filepath);
+ ok(!ret, "_mkdir failed: %d\n", errno);
sprintf(filepath, "%swine_test\\a", tmppath);
f = fopen(filepath, "w");
ok(f != NULL, "fopen(%s) failed: %d\n", filepath, errno);
More information about the wine-cvs
mailing list