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
b9251bcd
Commit
b9251bcd
authored
Sep 24, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix a couple of failures in the comm tests.
parent
9f28d9a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
comm.c
dlls/kernel32/tests/comm.c
+8
-4
No files found.
dlls/kernel32/tests/comm.c
View file @
b9251bcd
...
...
@@ -684,7 +684,7 @@ static HANDLE test_OpenComm(BOOL doOverlap)
if
(
hcom
==
INVALID_HANDLE_VALUE
)
trace
(
"Could not find a valid COM port. Skipping test_ReadTimeOut
\n
"
);
else
trace
(
"Found Com port %s. Connected devices may disturb
e
results
\n
"
,
port_name
);
trace
(
"Found Com port %s. Connected devices may disturb results
\n
"
,
port_name
);
/*shown = TRUE; */
}
if
(
hcom
!=
INVALID_HANDLE_VALUE
)
...
...
@@ -692,9 +692,12 @@ static HANDLE test_OpenComm(BOOL doOverlap)
BOOL
ret
;
ret
=
ClearCommError
(
hcom
,
&
errors
,
&
comstat
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_NOT_READY
)
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_NOT_READY
||
GetLastError
()
==
ERROR_INVALID_HANDLE
)
)
{
trace
(
"%s doesn't respond, skipping the test
\n
"
,
port_name
);
if
(
GetLastError
()
==
ERROR_NOT_READY
)
trace
(
"%s doesn't respond, skipping the test
\n
"
,
port_name
);
else
trace
(
"%s is not a real serial port, skipping the test
\n
"
,
port_name
);
CloseHandle
(
hcom
);
return
INVALID_HANDLE_VALUE
;
}
...
...
@@ -1649,7 +1652,8 @@ static void test_stdio(void)
/* cygwin tries this to determine the stdin handle type */
ok
(
!
GetCommState
(
GetStdHandle
(
STD_INPUT_HANDLE
),
&
dcb
),
"GetCommState succeeded on stdin
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"got error %u
\n
"
,
GetLastError
()
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
||
GetLastError
()
==
ERROR_INVALID_FUNCTION
,
"got error %u
\n
"
,
GetLastError
()
);
}
START_TEST
(
comm
)
...
...
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