1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

ntdll/tests: Fix FILE_RENAME_INFORMATION_EX test failures on Windows 10 1607 & 1709.

These versions of Windows are not included in the TestBot base VM set hence why
the failures were not caught when the tests were submitted in the original
commit: 07e40a6f9f

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55733
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
This commit is contained in:
Joel Holdsworth 2023-10-06 10:41:37 +01:00 committed by Alexandre Julliard
parent c737b283d0
commit 72ebbca61b

View file

@ -2259,12 +2259,18 @@ static void test_file_rename_information_ex(void)
io.Status = 0xdeadbeef;
res = pNtSetInformationFile( handle, &io, fri, sizeof(FILE_RENAME_INFORMATION) + fri->FileNameLength, FileRenameInformationEx );
ok( io.Status == STATUS_SUCCESS, "io.Status expected STATUS_SUCCESS, got %lx\n", io.Status );
ok( res == STATUS_SUCCESS, "res expected STATUS_SUCCESS, got %lx\n", res );
fileDeleted = GetFileAttributesW( oldpath ) == INVALID_FILE_ATTRIBUTES && GetLastError() == ERROR_FILE_NOT_FOUND;
ok( fileDeleted, "file should not exist\n" );
fileDeleted = GetFileAttributesW( newpath ) == INVALID_FILE_ATTRIBUTES && GetLastError() == ERROR_FILE_NOT_FOUND;
ok( !fileDeleted, "file should exist\n" );
ok( io.Status == STATUS_SUCCESS || io.Status == 0xdeadbeef,
"io.Status expected STATUS_SUCCESS or 0xdeadbeef, got %lx\n", io.Status );
ok( res == STATUS_SUCCESS || res == STATUS_NOT_SUPPORTED,
"res expected STATUS_SUCCESS or STATUS_NOT_SUPPORTED, got %lx\n", res );
if (res == STATUS_SUCCESS)
{
fileDeleted = GetFileAttributesW( oldpath ) == INVALID_FILE_ATTRIBUTES && GetLastError() == ERROR_FILE_NOT_FOUND;
ok( fileDeleted, "file should not exist\n" );
fileDeleted = GetFileAttributesW( newpath ) == INVALID_FILE_ATTRIBUTES && GetLastError() == ERROR_FILE_NOT_FOUND;
ok( !fileDeleted, "file should exist\n" );
}
CloseHandle( handle );
HeapFree( GetProcessHeap(), 0, fri );