mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:26:10 +00:00
kernel32/tests: Correctly skip when the Unicode file functions are not available.
This commit is contained in:
parent
a85dc85960
commit
38f7d54fe0
1 changed files with 20 additions and 5 deletions
|
@ -633,8 +633,11 @@ static void test_CopyFileW(void)
|
|||
DWORD ret;
|
||||
|
||||
ret = GetTempPathW(MAX_PATH, temp_path);
|
||||
if (ret==0 && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
|
||||
if (ret == 0 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
|
||||
{
|
||||
win_skip("GetTempPathW is not available\n");
|
||||
return;
|
||||
}
|
||||
ok(ret != 0, "GetTempPathW error %d\n", GetLastError());
|
||||
ok(ret < MAX_PATH, "temp path should fit into MAX_PATH\n");
|
||||
|
||||
|
@ -720,8 +723,11 @@ static void test_CreateFileW(void)
|
|||
DWORD ret;
|
||||
|
||||
ret = GetTempPathW(MAX_PATH, temp_path);
|
||||
if (ret==0 && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
|
||||
if (ret == 0 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
|
||||
{
|
||||
win_skip("GetTempPathW is not available\n");
|
||||
return;
|
||||
}
|
||||
ok(ret != 0, "GetTempPathW error %d\n", GetLastError());
|
||||
ok(ret < MAX_PATH, "temp path should fit into MAX_PATH\n");
|
||||
|
||||
|
@ -864,8 +870,11 @@ static void test_DeleteFileW( void )
|
|||
static const WCHAR emptyW[]={'\0'};
|
||||
|
||||
ret = DeleteFileW(NULL);
|
||||
if (ret==0 && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
|
||||
if (ret == 0 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
|
||||
{
|
||||
win_skip("DeleteFileW is not available\n");
|
||||
return;
|
||||
}
|
||||
ok(!ret && GetLastError() == ERROR_PATH_NOT_FOUND,
|
||||
"DeleteFileW(NULL) returned ret=%d error=%d\n",ret,GetLastError());
|
||||
|
||||
|
@ -984,8 +993,11 @@ static void test_MoveFileW(void)
|
|||
DWORD ret;
|
||||
|
||||
ret = GetTempPathW(MAX_PATH, temp_path);
|
||||
if (ret==0 && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
|
||||
if (ret == 0 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
|
||||
{
|
||||
win_skip("GetTempPathW is not available\n");
|
||||
return;
|
||||
}
|
||||
ok(ret != 0, "GetTempPathW error %d\n", GetLastError());
|
||||
ok(ret < MAX_PATH, "temp path should fit into MAX_PATH\n");
|
||||
|
||||
|
@ -2352,8 +2364,11 @@ static void test_ReplaceFileW(void)
|
|||
}
|
||||
|
||||
ret = GetTempPathW(MAX_PATH, temp_path);
|
||||
if (ret==0 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
|
||||
if (ret == 0 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
|
||||
{
|
||||
win_skip("GetTempPathW is not available\n");
|
||||
return;
|
||||
}
|
||||
ok(ret != 0, "GetTempPathW error %d\n", GetLastError());
|
||||
ok(ret < MAX_PATH, "temp path should fit into MAX_PATH\n");
|
||||
|
||||
|
|
Loading…
Reference in a new issue