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
57c4d280
Commit
57c4d280
authored
Jan 17, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Skip StartTrace tests if the user doesn't have admin rights.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
87a3ce05
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
eventlog.c
dlls/advapi32/tests/eventlog.c
+6
-0
No files found.
dlls/advapi32/tests/eventlog.c
View file @
57c4d280
...
...
@@ -1218,6 +1218,11 @@ static void test_start_trace(void)
properties
->
LogFileNameOffset
=
sizeof
(
EVENT_TRACE_PROPERTIES
)
+
sizeof
(
sessionname
);
ret
=
StartTraceA
(
&
handle
,
sessionname
,
properties
);
if
(
ret
==
ERROR_ACCESS_DENIED
)
{
skip
(
"need admin rights
\n
"
);
goto
done
;
}
ok
(
ret
==
ERROR_SUCCESS
,
"Expected success, got %d
\n
"
,
ret
);
ret
=
StartTraceA
(
&
handle
,
sessionname
,
properties
);
...
...
@@ -1228,6 +1233,7 @@ static void test_start_trace(void)
/* clean up */
ControlTraceA
(
handle
,
sessionname
,
properties
,
EVENT_TRACE_CONTROL_STOP
);
done:
HeapFree
(
GetProcessHeap
(),
0
,
properties
);
DeleteFileA
(
filepath
);
}
...
...
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