mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-24 09:06:23 +00:00
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:
parent
557a760e7f
commit
03a2d4851b
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue