Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e0c3530a
Commit
e0c3530a
authored
Oct 13, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Add the read_write info to the failures context.
Otherwise it's impossible to know which iteration failed.
parent
e6b5afcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
eventlog.c
dlls/advapi32/tests/eventlog.c
+7
-0
No files found.
dlls/advapi32/tests/eventlog.c
View file @
e0c3530a
...
...
@@ -882,6 +882,8 @@ static void test_readwrite(void)
DWORD
oldest
;
BOOL
run_sidtests
=
read_write
[
i
].
evt_sid
&
sidavailable
;
winetest_push_context
(
"%lu:%s"
,
i
,
read_write
[
i
].
evt_src
);
/* We don't need to use RegisterEventSource to report events */
if
(
i
%
2
)
handle
=
OpenEventLogA
(
NULL
,
read_write
[
i
].
evt_src
);
...
...
@@ -918,6 +920,7 @@ static void test_readwrite(void)
else
ret
=
DeregisterEventSource
(
handle
);
ok
(
ret
,
"Expected success : %ld
\n
"
,
GetLastError
());
winetest_pop_context
();
}
handle
=
OpenEventLogA
(
NULL
,
eventlogname
);
...
...
@@ -969,7 +972,9 @@ static void test_readwrite(void)
char
*
ptr
;
BOOL
run_sidtests
=
read_write
[
i
].
evt_sid
&
sidavailable
;
winetest_push_context
(
"%lu"
,
i
);
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
EVENTLOGRECORD
));
SetLastError
(
0xdeadbeef
);
ret
=
ReadEventLogA
(
handle
,
EVENTLOG_SEQUENTIAL_READ
|
EVENTLOG_FORWARDS_READ
,
0
,
buf
,
sizeof
(
EVENTLOGRECORD
),
&
read
,
&
needed
);
...
...
@@ -978,6 +983,7 @@ static void test_readwrite(void)
{
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
ok
(
GetLastError
()
==
ERROR_HANDLE_EOF
,
"record %ld, got %ld
\n
"
,
i
,
GetLastError
());
winetest_pop_context
();
break
;
}
...
...
@@ -1052,6 +1058,7 @@ static void test_readwrite(void)
"Expected the closing DWORD to contain the length of the record
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
winetest_pop_context
();
i
++
;
}
CloseEventLog
(
handle
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment