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
3fd4f688
Commit
3fd4f688
authored
May 22, 2010
by
Austin English
Committed by
Alexandre Julliard
May 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Check return value of alarmThread in test_NamedPipe_2().
parent
21dac9f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
pipe.c
dlls/kernel32/tests/pipe.c
+12
-6
No files found.
dlls/kernel32/tests/pipe.c
View file @
3fd4f688
...
...
@@ -804,31 +804,37 @@ static void test_NamedPipe_2(void)
trace
(
"test_NamedPipe_2 starting
\n
"
);
/* Set up a twenty second timeout */
alarm_event
=
CreateEvent
(
NULL
,
TRUE
,
FALSE
,
NULL
);
SetLastError
(
0xdeadbeef
);
alarmThread
=
CreateThread
(
NULL
,
0
,
alarmThreadMain
,
(
void
*
)
20000
,
0
,
&
alarmThreadId
);
ok
(
alarmThread
!=
NULL
,
"CreateThread failed: %d
\n
"
,
GetLastError
());
/* The servers we're about to exerci
z
e do try to clean up carefully,
* but to reduce the chan
g
e of a test failure due to a pipe handle
/* The servers we're about to exerci
s
e do try to clean up carefully,
* but to reduce the chan
c
e of a test failure due to a pipe handle
* leak in the test code, we'll use a different pipe name for each server.
*/
/* Try server #1 */
SetLastError
(
0xdeadbeef
);
serverThread
=
CreateThread
(
NULL
,
0
,
serverThreadMain1
,
(
void
*
)
8
,
0
,
&
serverThreadId
);
ok
(
serverThread
!=
INVALID_HANDLE_VALUE
,
"CreateThread
\n
"
);
ok
(
serverThread
!=
NULL
,
"CreateThread failed: %d
\n
"
,
GetLastError
()
);
exercizeServer
(
PIPENAME
"serverThreadMain1"
,
serverThread
);
/* Try server #2 */
SetLastError
(
0xdeadbeef
);
serverThread
=
CreateThread
(
NULL
,
0
,
serverThreadMain2
,
0
,
0
,
&
serverThreadId
);
ok
(
serverThread
!=
INVALID_HANDLE_VALUE
,
"CreateThread
\n
"
);
ok
(
serverThread
!=
NULL
,
"CreateThread failed: %d
\n
"
,
GetLastError
()
);
exercizeServer
(
PIPENAME
"serverThreadMain2"
,
serverThread
);
/* Try server #3 */
SetLastError
(
0xdeadbeef
);
serverThread
=
CreateThread
(
NULL
,
0
,
serverThreadMain3
,
0
,
0
,
&
serverThreadId
);
ok
(
serverThread
!=
INVALID_HANDLE_VALUE
,
"CreateThread
\n
"
);
ok
(
serverThread
!=
NULL
,
"CreateThread failed: %d
\n
"
,
GetLastError
()
);
exercizeServer
(
PIPENAME
"serverThreadMain3"
,
serverThread
);
/* Try server #4 */
SetLastError
(
0xdeadbeef
);
serverThread
=
CreateThread
(
NULL
,
0
,
serverThreadMain4
,
0
,
0
,
&
serverThreadId
);
ok
(
serverThread
!=
INVALID_HANDLE_VALUE
,
"CreateThread
\n
"
);
ok
(
serverThread
!=
NULL
,
"CreateThread failed: %d
\n
"
,
GetLastError
()
);
exercizeServer
(
PIPENAME
"serverThreadMain4"
,
serverThread
);
ok
(
SetEvent
(
alarm_event
),
"SetEvent
\n
"
);
...
...
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