advapi32/tests: Get rid of an unreliable eventlog test.

It can take a while before a new eventlog file is created on Windows. Rather than
waiting for it I chose to remove this test since it seems doubtful that any application
will need to access the file directly.
This commit is contained in:
Hans Leidekker 2023-11-02 15:09:32 +01:00 committed by Alexandre Julliard
parent 557a760e7f
commit 03a2d4851b

View file

@ -1156,24 +1156,10 @@ static void test_autocreation(void)
/* On Windows we also automatically get an eventlog file */
GetSystemDirectoryA(sysdir, sizeof(sysdir));
/* NT4 - W2K3 */
lstrcpyA(eventlogfile, sysdir);
lstrcatA(eventlogfile, "\\config\\");
lstrcatA(eventlogfile, "\\winevt\\Logs\\");
lstrcatA(eventlogfile, eventlogname);
lstrcatA(eventlogfile, ".evt");
if (GetFileAttributesA(eventlogfile) == INVALID_FILE_ATTRIBUTES)
{
/* Vista+ */
lstrcpyA(eventlogfile, sysdir);
lstrcatA(eventlogfile, "\\winevt\\Logs\\");
lstrcatA(eventlogfile, eventlogname);
lstrcatA(eventlogfile, ".evtx");
}
todo_wine
ok(GetFileAttributesA(eventlogfile) != INVALID_FILE_ATTRIBUTES,
"Expected an eventlog file\n");
lstrcatA(eventlogfile, ".evtx");
if (pWow64RevertWow64FsRedirection)
pWow64RevertWow64FsRedirection(redir);