msvcrt/tests: Don't test function directly when reporting errno.
This commit is contained in:
parent
f28324a69c
commit
61a1213078
|
@ -197,12 +197,14 @@ static void test___getmainargs_parent(char *name)
|
||||||
STARTUPINFO startup;
|
STARTUPINFO startup;
|
||||||
PROCESS_INFORMATION proc;
|
PROCESS_INFORMATION proc;
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
int ret;
|
||||||
|
|
||||||
ok(GetTempPathA(MAX_PATH, tmppath) != 0, "GetTempPath failed\n");
|
ok(GetTempPathA(MAX_PATH, tmppath) != 0, "GetTempPath failed\n");
|
||||||
sprintf(cmdline, "%s data %s*\\* %swine_test/*", name, tmppath, tmppath);
|
sprintf(cmdline, "%s data %s*\\* %swine_test/*", name, tmppath, tmppath);
|
||||||
|
|
||||||
sprintf(filepath, "%swine_test", 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);
|
sprintf(filepath, "%swine_test\\a", tmppath);
|
||||||
f = fopen(filepath, "w");
|
f = fopen(filepath, "w");
|
||||||
ok(f != NULL, "fopen(%s) failed: %d\n", filepath, errno);
|
ok(f != NULL, "fopen(%s) failed: %d\n", filepath, errno);
|
||||||
|
|
Loading…
Reference in New Issue