mirror of
https://github.com/reactos/wine.git
synced 2025-01-24 04:45:18 +00:00
kernel32/tests: Make sure to use return values (LLVM/Clang).
This commit is contained in:
parent
4c6edd7fe0
commit
4e3c3ad593
@ -393,6 +393,7 @@ static void test_CreateDirectoryW(void)
|
||||
"CreateDirectoryW with ? wildcard name should fail with error 183, ret=%s error=%d\n",
|
||||
ret ? " True" : "False", GetLastError());
|
||||
ret = RemoveDirectoryW(tmpdir);
|
||||
ok(ret == FALSE, "RemoveDirectoryW should have failed\n");
|
||||
|
||||
tmpdir[lstrlenW(tmpdir) - 1] = '*';
|
||||
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",
|
||||
ret ? " True" : "False", GetLastError());
|
||||
ret = RemoveDirectoryW(tmpdir);
|
||||
ok(ret == FALSE, "RemoveDirectoryW should have failed\n");
|
||||
|
||||
GetTempPathW(MAX_PATH, tmpdir);
|
||||
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",
|
||||
ret, GetLastError());
|
||||
ret = RemoveDirectoryW(tmpdir);
|
||||
ok(ret == FALSE, "RemoveDirectoryW should have failed\n");
|
||||
}
|
||||
|
||||
static void test_RemoveDirectoryA(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user