From: Hans Leidekker hans@codeweavers.com
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. --- dlls/advapi32/tests/eventlog.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-)
diff --git a/dlls/advapi32/tests/eventlog.c b/dlls/advapi32/tests/eventlog.c index b5965eb609d..b27d1bde7d2 100644 --- a/dlls/advapi32/tests/eventlog.c +++ b/dlls/advapi32/tests/eventlog.c @@ -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);