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
191a67d3
Commit
191a67d3
authored
Nov 21, 2021
by
André Zwing
Committed by
Alexandre Julliard
Nov 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucrtbase/tests: Don't test functions directly when reporting GetLastError().
Signed-off-by:
André Zwing
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
867c8f1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
thread.c
dlls/ucrtbase/tests/thread.c
+4
-2
No files found.
dlls/ucrtbase/tests/thread.c
View file @
191a67d3
...
...
@@ -105,7 +105,8 @@ static void test_thread_library_reference(char *thread_dll,
ok
(
thread_handle
!=
-
1
&&
thread_handle
!=
0
,
"Failed to begin thread: %u
\n
"
,
errno
);
ok
(
FreeLibrary
(
dll
),
"Failed to free the library: %u
\n
"
,
GetLastError
());
ret
=
FreeLibrary
(
dll
);
ok
(
ret
,
"Failed to free the library: %u
\n
"
,
GetLastError
());
ret
=
WaitForSingleObject
(
args
.
confirm_running
,
200
);
ok
(
ret
==
WAIT_OBJECT_0
,
"Event was not signaled, ret: %u, err: %u
\n
"
,
ret
,
GetLastError
());
...
...
@@ -113,7 +114,8 @@ static void test_thread_library_reference(char *thread_dll,
ret
=
WaitForSingleObject
(
detach_event
,
0
);
ok
(
ret
==
WAIT_TIMEOUT
,
"Thread detach happened unexpectedly signaling an event, ret: %d, err: %u
\n
"
,
ret
,
GetLastError
());
ok
(
SetEvent
(
args
.
past_free
),
"Failed to signal event: %d
\n
"
,
GetLastError
());
ret
=
SetEvent
(
args
.
past_free
);
ok
(
ret
,
"Failed to signal event: %d
\n
"
,
GetLastError
());
if
(
beginthread_method
==
use_beginthreadex
)
{
...
...
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