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
b190a72b
Commit
b190a72b
authored
Feb 15, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmllite/tests: Use todo_wine_if() in tests.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bf1cdf58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
36 deletions
+6
-36
reader.c
dlls/xmllite/tests/reader.c
+6
-36
No files found.
dlls/xmllite/tests/reader.c
View file @
b190a72b
...
...
@@ -96,15 +96,9 @@ static void ok_pos_(IXmlReader *reader, int line, int pos, int line_broken,
broken_state
=
broken
((
line_broken
==
-
1
?
line
:
line_broken
)
==
l
&&
(
pos_broken
==
-
1
?
pos
:
pos_broken
)
==
p
);
if
(
todo
)
todo_wine
todo_wine_if
(
todo
)
ok_
(
__FILE__
,
_line_
)((
l
==
line
&&
pos
==
p
)
||
broken_state
,
"Expected (%d,%d), got (%d,%d)
\n
"
,
line
,
pos
,
l
,
p
);
else
{
ok_
(
__FILE__
,
_line_
)((
l
==
line
&&
pos
==
p
)
||
broken_state
,
"Expected (%d,%d), got (%d,%d)
\n
"
,
line
,
pos
,
l
,
p
);
}
}
#define ok_pos(reader, l, p, l_brk, p_brk, todo) ok_pos_(reader, l, p, l_brk, p_brk, todo, __LINE__)
...
...
@@ -147,12 +141,8 @@ static void ok_iids_(const input_iids_t *iids, const IID **expected, const IID *
while
(
expected
[
i
++
])
size
++
;
if
(
todo
)
{
todo_wine
ok_
(
__FILE__
,
line
)(
iids
->
count
==
size
,
"Sequence size mismatch (%d), got (%d)
\n
"
,
size
,
iids
->
count
);
}
else
ok_
(
__FILE__
,
line
)(
iids
->
count
==
size
,
"Sequence size mismatch (%d), got (%d)
\n
"
,
size
,
iids
->
count
);
todo_wine_if
(
todo
)
ok_
(
__FILE__
,
line
)(
iids
->
count
==
size
,
"Sequence size mismatch (%d), got (%d)
\n
"
,
size
,
iids
->
count
);
if
(
iids
->
count
!=
size
)
return
;
...
...
@@ -247,13 +237,7 @@ static void test_read_state_(IXmlReader *reader, XmlReadState expected,
else
broken_state
=
broken
(
exp_broken
==
state
);
if
(
todo
)
{
todo_wine
ok_
(
__FILE__
,
line
)(
state
==
expected
||
broken_state
,
"Expected (%s), got (%s)
\n
"
,
state_to_str
(
expected
),
state_to_str
(
state
));
}
else
todo_wine_if
(
todo
)
ok_
(
__FILE__
,
line
)(
state
==
expected
||
broken_state
,
"Expected (%s), got (%s)
\n
"
,
state_to_str
(
expected
),
state_to_str
(
state
));
}
...
...
@@ -1515,14 +1499,7 @@ static void test_read_cdata(void)
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
str_exp
=
a2w
(
test
->
value
);
if
(
test
->
todo
)
{
todo_wine
{
ok
(
len
==
strlen
(
test
->
value
),
"got %u
\n
"
,
len
);
ok
(
!
lstrcmpW
(
str
,
str_exp
),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
}
}
else
todo_wine_if
(
test
->
todo
)
{
ok
(
len
==
strlen
(
test
->
value
),
"got %u
\n
"
,
len
);
ok
(
!
lstrcmpW
(
str
,
str_exp
),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
...
...
@@ -1615,14 +1592,7 @@ static void test_read_text(void)
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
str_exp
=
a2w
(
test
->
value
);
if
(
test
->
todo
)
{
todo_wine
{
ok
(
len
==
strlen
(
test
->
value
),
"got %u
\n
"
,
len
);
ok
(
!
lstrcmpW
(
str
,
str_exp
),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
}
}
else
todo_wine_if
(
test
->
todo
)
{
ok
(
len
==
strlen
(
test
->
value
),
"got %u
\n
"
,
len
);
ok
(
!
lstrcmpW
(
str
,
str_exp
),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
...
...
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