kernel32/tests: Add test for SetFileTime.

Signed-off-by: Christian Inci <chris.pcguy.inci@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Christian Inci 2017-02-06 09:10:23 +01:00 committed by Alexandre Julliard
parent b7118753f4
commit a3d6d9c254
1 changed files with 12 additions and 0 deletions

View File

@ -3898,6 +3898,18 @@ todo_wine_if (i == 1)
ok(!ret, "%d: WriteFile should fail\n", i);
ok(GetLastError() == ERROR_ACCESS_DENIED, "%d: expected ERROR_ACCESS_DENIED, got %d\n", i, GetLastError());
}
SetLastError(0xdeadbeef);
ret = SetFileTime(hfile, NULL, NULL, NULL);
if (td[i].access & GENERIC_WRITE) /* actually FILE_WRITE_ATTRIBUTES */
ok(ret, "%d: SetFileTime error %d\n", i, GetLastError());
else
{
todo_wine
{
ok(!ret, "%d: SetFileTime should fail\n", i);
ok(GetLastError() == ERROR_ACCESS_DENIED, "%d: expected ERROR_ACCESS_DENIED, got %d\n", i, GetLastError());
}
}
CloseHandle(hfile);
}
else