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
81f110cc
Commit
81f110cc
authored
Sep 08, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Sep 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32/tests: Fix incorrect usage of broken() function.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
88bf73ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
convert.c
dlls/oledb32/tests/convert.c
+4
-4
No files found.
dlls/oledb32/tests/convert.c
View file @
81f110cc
...
...
@@ -1351,7 +1351,7 @@ static void test_converttowstr(void)
((
LARGE_INTEGER
*
)
src
)
->
QuadPart
=
4321
;
dst_len
=
0x1234
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_I8
,
DBTYPE_WSTR
,
0
,
&
dst_len
,
src
,
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
ok
(
broken
(
DB_E_UNSUPPORTEDCONVERSION
)
||
hr
==
S_OK
/* W2K+ */
,
"got %08x
\n
"
,
hr
);
ok
(
broken
(
hr
==
DB_E_UNSUPPORTEDCONVERSION
)
||
hr
==
S_OK
/* W2K+ */
,
"got %08x
\n
"
,
hr
);
ok
(
broken
(
dst_status
==
DBSTATUS_E_BADACCESSOR
)
||
dst_status
==
DBSTATUS_S_OK
/* W2K+ */
,
"got %08x
\n
"
,
dst_status
);
ok
(
broken
(
dst_len
==
0x1234
)
||
dst_len
==
8
/* W2K+ */
,
"got %ld
\n
"
,
dst_len
);
ok
(
!
lstrcmpW
(
dst
,
fourthreetwoone
),
"got %s
\n
"
,
wine_dbgstr_w
(
dst
));
...
...
@@ -1359,7 +1359,7 @@ static void test_converttowstr(void)
memset
(
src
,
0
,
sizeof
(
src
));
((
ULARGE_INTEGER
*
)
src
)
->
QuadPart
=
4321
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_UI8
,
DBTYPE_WSTR
,
0
,
&
dst_len
,
src
,
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
ok
(
broken
(
DB_E_UNSUPPORTEDCONVERSION
)
||
hr
==
S_OK
/* W2K+ */
,
"got %08x
\n
"
,
hr
);
ok
(
broken
(
hr
==
DB_E_UNSUPPORTEDCONVERSION
)
||
hr
==
S_OK
/* W2K+ */
,
"got %08x
\n
"
,
hr
);
ok
(
broken
(
dst_status
==
DBSTATUS_E_BADACCESSOR
)
||
dst_status
==
DBSTATUS_S_OK
/* W2K+ */
,
"got %08x
\n
"
,
dst_status
);
ok
(
broken
(
dst_len
==
0x1234
)
||
dst_len
==
8
/* W2K+ */
,
"got %ld
\n
"
,
dst_len
);
ok
(
!
lstrcmpW
(
dst
,
fourthreetwoone
),
"got %s
\n
"
,
wine_dbgstr_w
(
dst
));
...
...
@@ -1838,7 +1838,7 @@ static void test_converttostr(void)
((
LARGE_INTEGER
*
)
src
)
->
QuadPart
=
4321
;
dst_len
=
0x1234
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_I8
,
DBTYPE_STR
,
0
,
&
dst_len
,
src
,
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
ok
(
broken
(
DB_E_UNSUPPORTEDCONVERSION
)
||
hr
==
S_OK
/* W2K+ */
,
"got %08x
\n
"
,
hr
);
ok
(
broken
(
hr
==
DB_E_UNSUPPORTEDCONVERSION
)
||
hr
==
S_OK
/* W2K+ */
,
"got %08x
\n
"
,
hr
);
ok
(
broken
(
dst_status
==
DBSTATUS_E_BADACCESSOR
)
||
dst_status
==
DBSTATUS_S_OK
/* W2K+ */
,
"got %08x
\n
"
,
dst_status
);
ok
(
broken
(
dst_len
==
0x1234
)
||
dst_len
==
4
/* W2K+ */
,
"got %ld
\n
"
,
dst_len
);
ok
(
!
lstrcmpA
(
dst
,
fourthreetwoone
),
"got %s
\n
"
,
dst
);
...
...
@@ -1847,7 +1847,7 @@ static void test_converttostr(void)
((
ULARGE_INTEGER
*
)
src
)
->
QuadPart
=
4321
;
dst_len
=
0x1234
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_UI8
,
DBTYPE_STR
,
0
,
&
dst_len
,
src
,
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
ok
(
broken
(
DB_E_UNSUPPORTEDCONVERSION
)
||
hr
==
S_OK
/* W2K+ */
,
"got %08x
\n
"
,
hr
);
ok
(
broken
(
hr
==
DB_E_UNSUPPORTEDCONVERSION
)
||
hr
==
S_OK
/* W2K+ */
,
"got %08x
\n
"
,
hr
);
ok
(
broken
(
dst_status
==
DBSTATUS_E_BADACCESSOR
)
||
dst_status
==
DBSTATUS_S_OK
/* W2K+ */
,
"got %08x
\n
"
,
dst_status
);
ok
(
broken
(
dst_len
==
0x1234
)
||
dst_len
==
4
/* W2K+ */
,
"got %ld
\n
"
,
dst_len
);
ok
(
!
lstrcmpA
(
dst
,
fourthreetwoone
),
"got %s
\n
"
,
dst
);
...
...
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