Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2abec634
Commit
2abec634
authored
Feb 11, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Simplify tests using todo_wine_if().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2cd81c14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
26 deletions
+5
-26
security.c
dlls/advapi32/tests/security.c
+5
-26
No files found.
dlls/advapi32/tests/security.c
View file @
2abec634
...
...
@@ -3159,12 +3159,7 @@ static void test_inherited_dacl(PACL dacl, PSID admin_sid, PSID user_sid, DWORD
bret
=
pGetAclInformation
(
dacl
,
&
acl_size
,
sizeof
(
acl_size
),
AclSizeInformation
);
ok_
(
__FILE__
,
line
)(
bret
,
"GetAclInformation failed
\n
"
);
if
(
todo_count
)
todo_wine
ok_
(
__FILE__
,
line
)(
acl_size
.
AceCount
==
2
,
"GetAclInformation returned unexpected entry count (%d != 2)
\n
"
,
acl_size
.
AceCount
);
else
todo_wine_if
(
todo_count
)
ok_
(
__FILE__
,
line
)(
acl_size
.
AceCount
==
2
,
"GetAclInformation returned unexpected entry count (%d != 2)
\n
"
,
acl_size
.
AceCount
);
...
...
@@ -3175,18 +3170,10 @@ static void test_inherited_dacl(PACL dacl, PSID admin_sid, PSID user_sid, DWORD
ok_
(
__FILE__
,
line
)(
bret
,
"Failed to get Current User ACE
\n
"
);
bret
=
EqualSid
(
&
ace
->
SidStart
,
user_sid
);
if
(
todo_sid
)
todo_wine
ok_
(
__FILE__
,
line
)(
bret
,
"Current User ACE (%s) != Current User SID (%s)
\n
"
,
debugstr_sid
(
&
ace
->
SidStart
),
debugstr_sid
(
user_sid
));
else
todo_wine_if
(
todo_sid
)
ok_
(
__FILE__
,
line
)(
bret
,
"Current User ACE (%s) != Current User SID (%s)
\n
"
,
debugstr_sid
(
&
ace
->
SidStart
),
debugstr_sid
(
user_sid
));
if
(
todo_flags
)
todo_wine
ok_
(
__FILE__
,
line
)(((
ACE_HEADER
*
)
ace
)
->
AceFlags
==
flags
,
"Current User ACE has unexpected flags (0x%x != 0x%x)
\n
"
,
((
ACE_HEADER
*
)
ace
)
->
AceFlags
,
flags
);
else
todo_wine_if
(
todo_flags
)
ok_
(
__FILE__
,
line
)(((
ACE_HEADER
*
)
ace
)
->
AceFlags
==
flags
,
"Current User ACE has unexpected flags (0x%x != 0x%x)
\n
"
,
((
ACE_HEADER
*
)
ace
)
->
AceFlags
,
flags
);
...
...
@@ -3201,18 +3188,10 @@ static void test_inherited_dacl(PACL dacl, PSID admin_sid, PSID user_sid, DWORD
ok_
(
__FILE__
,
line
)(
bret
,
"Failed to get Administators Group ACE
\n
"
);
bret
=
EqualSid
(
&
ace
->
SidStart
,
admin_sid
);
if
(
todo_sid
)
todo_wine
ok_
(
__FILE__
,
line
)(
bret
,
"Administators Group ACE (%s) != Administators Group SID (%s)
\n
"
,
debugstr_sid
(
&
ace
->
SidStart
),
debugstr_sid
(
admin_sid
));
else
todo_wine_if
(
todo_sid
)
ok_
(
__FILE__
,
line
)(
bret
,
"Administators Group ACE (%s) != Administators Group SID (%s)
\n
"
,
debugstr_sid
(
&
ace
->
SidStart
),
debugstr_sid
(
admin_sid
));
if
(
todo_flags
)
todo_wine
ok_
(
__FILE__
,
line
)(((
ACE_HEADER
*
)
ace
)
->
AceFlags
==
flags
,
"Administators Group ACE has unexpected flags (0x%x != 0x%x)
\n
"
,
((
ACE_HEADER
*
)
ace
)
->
AceFlags
,
flags
);
else
todo_wine_if
(
todo_flags
)
ok_
(
__FILE__
,
line
)(((
ACE_HEADER
*
)
ace
)
->
AceFlags
==
flags
,
"Administators Group ACE has unexpected flags (0x%x != 0x%x)
\n
"
,
((
ACE_HEADER
*
)
ace
)
->
AceFlags
,
flags
);
...
...
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