Module: wine Branch: master Commit: 03a2d4851b2e7dcc76f096752ec149a30514c9de URL: https://gitlab.winehq.org/wine/wine/-/commit/03a2d4851b2e7dcc76f096752ec149a...
Author: Hans Leidekker hans@codeweavers.com Date: Thu Nov 2 15:09:32 2023 +0100
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.
---
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);