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
6d3c83b8
Commit
6d3c83b8
authored
Jan 08, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32/tests: Simplify some ok() checks (PVS-Studio).
parent
6ac25d3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
15 deletions
+9
-15
convert.c
dlls/oledb32/tests/convert.c
+9
-15
No files found.
dlls/oledb32/tests/convert.c
View file @
6d3c83b8
...
...
@@ -303,27 +303,21 @@ static void test_canconvert(void)
/* src DBTYPE_VECTOR */
hr
=
IDataConvert_CanConvert
(
convert
,
simple_convert
[
src_idx
].
type
|
DBTYPE_VECTOR
,
simple_convert
[
dst_idx
].
type
);
expect
=
FALSE
;
ok
((
hr
==
S_OK
&&
expect
==
TRUE
)
||
(
hr
==
S_FALSE
&&
expect
==
FALSE
),
"%04x -> %04x: got %08x expect conversion to be %spossible
\n
"
,
simple_convert
[
src_idx
].
type
|
DBTYPE_VECTOR
,
simple_convert
[
dst_idx
].
type
,
hr
,
expect
?
""
:
"not "
);
ok
(
hr
==
S_FALSE
,
"%04x -> %04x: got %08x expect conversion to not be possible
\n
"
,
simple_convert
[
src_idx
].
type
|
DBTYPE_VECTOR
,
simple_convert
[
dst_idx
].
type
,
hr
);
/* dst DBTYPE_VECTOR */
hr
=
IDataConvert_CanConvert
(
convert
,
simple_convert
[
src_idx
].
type
,
simple_convert
[
dst_idx
].
type
|
DBTYPE_VECTOR
);
expect
=
FALSE
;
ok
((
hr
==
S_OK
&&
expect
==
TRUE
)
||
(
hr
==
S_FALSE
&&
expect
==
FALSE
),
"%04x -> %04x: got %08x expect conversion to be %spossible
\n
"
,
simple_convert
[
src_idx
].
type
,
simple_convert
[
dst_idx
].
type
|
DBTYPE_VECTOR
,
hr
,
expect
?
""
:
"not "
);
ok
(
hr
==
S_FALSE
,
"%04x -> %04x: got %08x expect conversion to not be possible
\n
"
,
simple_convert
[
src_idx
].
type
,
simple_convert
[
dst_idx
].
type
|
DBTYPE_VECTOR
,
hr
);
/* src & dst DBTYPE_VECTOR */
hr
=
IDataConvert_CanConvert
(
convert
,
simple_convert
[
src_idx
].
type
|
DBTYPE_VECTOR
,
simple_convert
[
dst_idx
].
type
|
DBTYPE_VECTOR
);
expect
=
FALSE
;
ok
((
hr
==
S_OK
&&
expect
==
TRUE
)
||
(
hr
==
S_FALSE
&&
expect
==
FALSE
),
"%04x -> %04x: got %08x expect conversion to be %spossible
\n
"
,
simple_convert
[
src_idx
].
type
|
DBTYPE_VECTOR
,
simple_convert
[
dst_idx
].
type
|
DBTYPE_VECTOR
,
hr
,
expect
?
""
:
"not "
);
ok
(
hr
==
S_FALSE
,
"%04x -> %04x: got %08x expect conversion to not be possible
\n
"
,
simple_convert
[
src_idx
].
type
|
DBTYPE_VECTOR
,
simple_convert
[
dst_idx
].
type
|
DBTYPE_VECTOR
,
hr
);
}
...
...
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