Commit 72ebbca6 authored by Joel Holdsworth's avatar Joel Holdsworth Committed by Alexandre Julliard

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: 07e40a6f Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55733Signed-off-by: 's avatarJoel Holdsworth <joel@airwebreathe.org.uk>
parent c737b283
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment