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
8d51efc7
Commit
8d51efc7
authored
Jul 10, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Wait for threads to terminate.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
40b7091e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
comm.c
dlls/kernel32/tests/comm.c
+12
-0
No files found.
dlls/kernel32/tests/comm.c
View file @
8d51efc7
...
...
@@ -1506,6 +1506,8 @@ static void test_WaitCts(void)
args
[
1
]
=
CLRRTS
;
CloseHandle
(
hcom
);
ok
(
!
WaitForSingleObject
(
alarmThread
,
10000
),
"thread still running
\n
"
);
CloseHandle
(
alarmThread
);
}
/* Change the Comm Mask while a Wait is going on
...
...
@@ -1588,6 +1590,8 @@ static void test_AbortWaitCts(void)
"Unexpected time %d, expected around %d
\n
"
,
diff
,
TIMEOUT
>>
1
);
CloseHandle
(
hcom
);
ok
(
!
WaitForSingleObject
(
alarmThread
,
10000
),
"thread still running
\n
"
);
CloseHandle
(
alarmThread
);
}
/*
...
...
@@ -1668,6 +1672,8 @@ static void test_WaitDsr(void)
args
[
1
]
=
CLRDTR
;
CloseHandle
(
hcom
);
ok
(
!
WaitForSingleObject
(
alarmThread
,
10000
),
"thread still running
\n
"
);
CloseHandle
(
alarmThread
);
}
/*
...
...
@@ -1754,6 +1760,8 @@ static void test_WaitRing(void)
args
[
1
]
=
CLRDTR
;
CloseHandle
(
hcom
);
ok
(
!
WaitForSingleObject
(
alarmThread
,
10000
),
"thread still running
\n
"
);
CloseHandle
(
alarmThread
);
}
/*
* Wait for a change in DCD
...
...
@@ -1833,6 +1841,8 @@ static void test_WaitDcd(void)
args
[
1
]
=
CLRDTR
;
CloseHandle
(
hcom
);
ok
(
!
WaitForSingleObject
(
alarmThread
,
10000
),
"thread still running
\n
"
);
CloseHandle
(
alarmThread
);
}
/*
...
...
@@ -1914,6 +1924,8 @@ static void test_WaitBreak(void)
ok
(
ClearCommBreak
(
hcom
),
"ClearCommBreak failed
\n
"
);
CloseHandle
(
hcom
);
ok
(
!
WaitForSingleObject
(
alarmThread
,
10000
),
"thread still running
\n
"
);
CloseHandle
(
alarmThread
);
}
static
void
test_stdio
(
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