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
45693738
Commit
45693738
authored
Dec 05, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Added a basic test for exception handling in threads.
parent
ef4dfd4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
thread.c
dlls/kernel/tests/thread.c
+7
-0
No files found.
dlls/kernel/tests/thread.c
View file @
45693738
...
@@ -119,6 +119,10 @@ static DWORD WINAPI threadFunc1(LPVOID p)
...
@@ -119,6 +119,10 @@ static DWORD WINAPI threadFunc1(LPVOID p)
for
(
i
=
0
;
i
<
NUM_THREADS
;
i
++
)
{
for
(
i
=
0
;
i
<
NUM_THREADS
;
i
++
)
{
while
(
tstruct
->
threadmem
[
i
]
==
0
)
;
while
(
tstruct
->
threadmem
[
i
]
==
0
)
;
}
}
/* lstrlenA contains an exception handler so this makes sure exceptions work in threads */
ok
(
lstrlenA
(
(
char
*
)
0xdeadbeef
)
==
0
,
"lstrlenA: unexpected success
\n
"
);
/* Check that noone changed our tls memory */
/* Check that noone changed our tls memory */
ok
((
int
)
TlsGetValue
(
tlsIndex
)
-
1
==
tstruct
->
threadnum
,
ok
((
int
)
TlsGetValue
(
tlsIndex
)
-
1
==
tstruct
->
threadnum
,
"TlsGetValue failed
\n
"
);
"TlsGetValue failed
\n
"
);
...
@@ -180,6 +184,9 @@ static VOID test_CreateThread_basic(void)
...
@@ -180,6 +184,9 @@ static VOID test_CreateThread_basic(void)
DWORD
i
,
j
;
DWORD
i
,
j
;
DWORD
GLE
,
ret
;
DWORD
GLE
,
ret
;
/* lstrlenA contains an exception handler so this makes sure exceptions work in the main thread */
ok
(
lstrlenA
(
(
char
*
)
0xdeadbeef
)
==
0
,
"lstrlenA: unexpected success
\n
"
);
/* Retrieve current Thread ID for later comparisons */
/* Retrieve current Thread ID for later comparisons */
curthreadId
=
GetCurrentThreadId
();
curthreadId
=
GetCurrentThreadId
();
/* Allocate some local storage */
/* Allocate some local storage */
...
...
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