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
06ebe936
Commit
06ebe936
authored
Jun 08, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Only report unimplemented functions once.
parent
ae8999f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
comm.c
dlls/kernel32/tests/comm.c
+9
-5
No files found.
dlls/kernel32/tests/comm.c
View file @
06ebe936
...
@@ -561,6 +561,7 @@ static void test_BuildCommDCBW(TEST *ptest, int initial_value, DCB *pexpected_dc
...
@@ -561,6 +561,7 @@ static void test_BuildCommDCBW(TEST *ptest, int initial_value, DCB *pexpected_dc
BOOL
result
;
BOOL
result
;
DCB
dcb
;
DCB
dcb
;
WCHAR
wide_string
[
sizeof
(
ptest
->
string
)];
WCHAR
wide_string
[
sizeof
(
ptest
->
string
)];
static
int
reportedDCBW
=
0
;
MultiByteToWideChar
(
CP_ACP
,
0
,
ptest
->
string
,
-
1
,
wide_string
,
sizeof
(
wide_string
)
/
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
ptest
->
string
,
-
1
,
wide_string
,
sizeof
(
wide_string
)
/
sizeof
(
WCHAR
));
...
@@ -572,7 +573,8 @@ static void test_BuildCommDCBW(TEST *ptest, int initial_value, DCB *pexpected_dc
...
@@ -572,7 +573,8 @@ static void test_BuildCommDCBW(TEST *ptest, int initial_value, DCB *pexpected_dc
if
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
if
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
{
win_skip
(
"BuildCommDCBW is not available
\n
"
);
if
(
!
reportedDCBW
++
)
win_skip
(
"BuildCommDCBW is not implemented
\n
"
);
return
;
return
;
}
}
...
@@ -587,6 +589,7 @@ static void test_BuildCommDCBAndTimeoutsW(TEST *ptest, int initial_value, DCB *p
...
@@ -587,6 +589,7 @@ static void test_BuildCommDCBAndTimeoutsW(TEST *ptest, int initial_value, DCB *p
DCB
dcb
;
DCB
dcb
;
COMMTIMEOUTS
timeouts
;
COMMTIMEOUTS
timeouts
;
WCHAR
wide_string
[
sizeof
(
ptest
->
string
)];
WCHAR
wide_string
[
sizeof
(
ptest
->
string
)];
static
int
reportedDCBAndTW
=
0
;
MultiByteToWideChar
(
CP_ACP
,
0
,
ptest
->
string
,
-
1
,
wide_string
,
sizeof
(
wide_string
)
/
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
ptest
->
string
,
-
1
,
wide_string
,
sizeof
(
wide_string
)
/
sizeof
(
WCHAR
));
...
@@ -599,14 +602,15 @@ static void test_BuildCommDCBAndTimeoutsW(TEST *ptest, int initial_value, DCB *p
...
@@ -599,14 +602,15 @@ static void test_BuildCommDCBAndTimeoutsW(TEST *ptest, int initial_value, DCB *p
if
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
if
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
{
win_skip
(
"BuildCommDCBAndTimeoutsW is not available
\n
"
);
if
(
!
reportedDCBAndTW
++
)
win_skip
(
"BuildCommDCBAndTimeoutsW is not implemented
\n
"
);
return
;
return
;
}
}
/* check results */
/* check results */
check_result
(
"BuildCommDCBAndTimeouts
A
"
,
ptest
,
initial_value
,
result
);
check_result
(
"BuildCommDCBAndTimeouts
W
"
,
ptest
,
initial_value
,
result
);
check_dcb
(
"BuildCommDCBAndTimeouts
A
"
,
ptest
,
initial_value
,
&
dcb
,
pexpected_dcb
);
check_dcb
(
"BuildCommDCBAndTimeouts
W
"
,
ptest
,
initial_value
,
&
dcb
,
pexpected_dcb
);
check_timeouts
(
"BuildCommDCBAndTimeouts
A
"
,
ptest
,
initial_value
,
&
timeouts
,
pexpected_timeouts
);
check_timeouts
(
"BuildCommDCBAndTimeouts
W
"
,
ptest
,
initial_value
,
&
timeouts
,
pexpected_timeouts
);
}
}
static
void
test_BuildCommDCB
(
void
)
static
void
test_BuildCommDCB
(
void
)
...
...
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