kernel32/tests: Make sure to use return values (LLVM/Clang).

This commit is contained in:
Austin English 2011-02-08 16:06:09 -08:00 committed by Alexandre Julliard
parent 4c6edd7fe0
commit 4e3c3ad593

View File

@ -393,6 +393,7 @@ static void test_CreateDirectoryW(void)
"CreateDirectoryW with ? wildcard name should fail with error 183, ret=%s error=%d\n", "CreateDirectoryW with ? wildcard name should fail with error 183, ret=%s error=%d\n",
ret ? " True" : "False", GetLastError()); ret ? " True" : "False", GetLastError());
ret = RemoveDirectoryW(tmpdir); ret = RemoveDirectoryW(tmpdir);
ok(ret == FALSE, "RemoveDirectoryW should have failed\n");
tmpdir[lstrlenW(tmpdir) - 1] = '*'; tmpdir[lstrlenW(tmpdir) - 1] = '*';
ret = CreateDirectoryW(tmpdir, NULL); ret = CreateDirectoryW(tmpdir, NULL);
@ -400,6 +401,7 @@ static void test_CreateDirectoryW(void)
"CreateDirectoryW with * wildcard name should fail with error 183, ret=%s error=%d\n", "CreateDirectoryW with * wildcard name should fail with error 183, ret=%s error=%d\n",
ret ? " True" : "False", GetLastError()); ret ? " True" : "False", GetLastError());
ret = RemoveDirectoryW(tmpdir); ret = RemoveDirectoryW(tmpdir);
ok(ret == FALSE, "RemoveDirectoryW should have failed\n");
GetTempPathW(MAX_PATH, tmpdir); GetTempPathW(MAX_PATH, tmpdir);
lstrcatW(tmpdir, tmp_dir_name); lstrcatW(tmpdir, tmp_dir_name);
@ -410,6 +412,7 @@ static void test_CreateDirectoryW(void)
"CreateDirectoryW with multiple nonexistent directories in path should fail ret %u err %u\n", "CreateDirectoryW with multiple nonexistent directories in path should fail ret %u err %u\n",
ret, GetLastError()); ret, GetLastError());
ret = RemoveDirectoryW(tmpdir); ret = RemoveDirectoryW(tmpdir);
ok(ret == FALSE, "RemoveDirectoryW should have failed\n");
} }
static void test_RemoveDirectoryA(void) static void test_RemoveDirectoryA(void)