Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7bbb7042
Commit
7bbb7042
authored
Feb 11, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp140_atomic_wait/tests: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
61886644
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
Makefile.in
dlls/msvcp140_atomic_wait/tests/Makefile.in
+0
-1
msvcp140_atomic_wait.c
dlls/msvcp140_atomic_wait/tests/msvcp140_atomic_wait.c
+7
-7
No files found.
dlls/msvcp140_atomic_wait/tests/Makefile.in
View file @
7bbb7042
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
msvcp140_atomic_wait.dll
TESTDLL
=
msvcp140_atomic_wait.dll
C_SRCS
=
\
C_SRCS
=
\
...
...
dlls/msvcp140_atomic_wait/tests/msvcp140_atomic_wait.c
View file @
7bbb7042
...
@@ -56,7 +56,7 @@ static void test___std_parallel_algorithms_hw_threads(void)
...
@@ -56,7 +56,7 @@ static void test___std_parallel_algorithms_hw_threads(void)
GetSystemInfo
(
&
si
);
GetSystemInfo
(
&
si
);
nthr
=
p___std_parallel_algorithms_hw_threads
();
nthr
=
p___std_parallel_algorithms_hw_threads
();
ok
(
nthr
==
si
.
dwNumberOfProcessors
,
"expected %u, got %u
\n
"
,
si
.
dwNumberOfProcessors
,
nthr
);
ok
(
nthr
==
si
.
dwNumberOfProcessors
,
"expected %
l
u, got %u
\n
"
,
si
.
dwNumberOfProcessors
,
nthr
);
}
}
static
PTP_WORK
cb_work
;
static
PTP_WORK
cb_work
;
...
@@ -102,7 +102,7 @@ static void test_threadpool_work(void)
...
@@ -102,7 +102,7 @@ static void test_threadpool_work(void)
p___std_submit_threadpool_work
(
work
);
p___std_submit_threadpool_work
(
work
);
p___std_wait_for_threadpool_work_callbacks
(
work
,
FALSE
);
p___std_wait_for_threadpool_work_callbacks
(
work
,
FALSE
);
p___std_close_threadpool_work
(
work
);
p___std_close_threadpool_work
(
work
);
ok
(
workcalled
==
1
,
"expected work to be called once, got %d
\n
"
,
workcalled
);
ok
(
workcalled
==
1
,
"expected work to be called once, got %
l
d
\n
"
,
workcalled
);
ok
(
cb_work
==
work
,
"expected %p, got %p
\n
"
,
work
,
cb_work
);
ok
(
cb_work
==
work
,
"expected %p, got %p
\n
"
,
work
,
cb_work
);
ok
(
cb_context
==
&
workcalled
,
"expected %p, got %p
\n
"
,
&
workcalled
,
cb_context
);
ok
(
cb_context
==
&
workcalled
,
"expected %p, got %p
\n
"
,
&
workcalled
,
cb_context
);
...
@@ -113,7 +113,7 @@ static void test_threadpool_work(void)
...
@@ -113,7 +113,7 @@ static void test_threadpool_work(void)
p___std_bulk_submit_threadpool_work
(
work
,
13
);
p___std_bulk_submit_threadpool_work
(
work
,
13
);
p___std_wait_for_threadpool_work_callbacks
(
work
,
FALSE
);
p___std_wait_for_threadpool_work_callbacks
(
work
,
FALSE
);
p___std_close_threadpool_work
(
work
);
p___std_close_threadpool_work
(
work
);
ok
(
workcalled
==
13
,
"expected work to be called 13 times, got %d
\n
"
,
workcalled
);
ok
(
workcalled
==
13
,
"expected work to be called 13 times, got %
l
d
\n
"
,
workcalled
);
workcalled
=
0
;
workcalled
=
0
;
work
=
p___std_create_threadpool_work
(
threadpool_workcallback
,
&
workcalled
,
NULL
);
work
=
p___std_create_threadpool_work
(
threadpool_workcallback
,
&
workcalled
,
NULL
);
...
@@ -121,7 +121,7 @@ static void test_threadpool_work(void)
...
@@ -121,7 +121,7 @@ static void test_threadpool_work(void)
p___std_bulk_submit_threadpool_work
(
work
,
0
);
p___std_bulk_submit_threadpool_work
(
work
,
0
);
p___std_wait_for_threadpool_work_callbacks
(
work
,
FALSE
);
p___std_wait_for_threadpool_work_callbacks
(
work
,
FALSE
);
p___std_close_threadpool_work
(
work
);
p___std_close_threadpool_work
(
work
);
ok
(
workcalled
==
0
,
"expected no work, got %d
\n
"
,
workcalled
);
ok
(
workcalled
==
0
,
"expected no work, got %
l
d
\n
"
,
workcalled
);
/* test with environment */
/* test with environment */
cb_event
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
);
cb_event
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
);
...
@@ -136,7 +136,7 @@ static void test_threadpool_work(void)
...
@@ -136,7 +136,7 @@ static void test_threadpool_work(void)
p___std_close_threadpool_work
(
work
);
p___std_close_threadpool_work
(
work
);
ret
=
WaitForSingleObject
(
cb_event
,
1000
);
ret
=
WaitForSingleObject
(
cb_event
,
1000
);
ok
(
ret
==
WAIT_OBJECT_0
,
"expected finalization callback to be called
\n
"
);
ok
(
ret
==
WAIT_OBJECT_0
,
"expected finalization callback to be called
\n
"
);
ok
(
workcalled
==
2
,
"expected work to be called twice, got %d
\n
"
,
workcalled
);
ok
(
workcalled
==
2
,
"expected work to be called twice, got %
l
d
\n
"
,
workcalled
);
CloseHandle
(
cb_event
);
CloseHandle
(
cb_event
);
/* test with environment version 3 */
/* test with environment version 3 */
...
@@ -147,7 +147,7 @@ static void test_threadpool_work(void)
...
@@ -147,7 +147,7 @@ static void test_threadpool_work(void)
work
=
p___std_create_threadpool_work
(
threadpool_workcallback
,
&
workcalled
,
work
=
p___std_create_threadpool_work
(
threadpool_workcallback
,
&
workcalled
,
(
TP_CALLBACK_ENVIRON
*
)
&
environment3
);
(
TP_CALLBACK_ENVIRON
*
)
&
environment3
);
gle
=
GetLastError
();
gle
=
GetLastError
();
ok
(
gle
==
0xdeadbeef
,
"expected 0xdeadbeef, got %x
\n
"
,
gle
);
ok
(
gle
==
0xdeadbeef
,
"expected 0xdeadbeef, got %
l
x
\n
"
,
gle
);
ok
(
!!
work
,
"failed to create threadpool_work
\n
"
);
ok
(
!!
work
,
"failed to create threadpool_work
\n
"
);
p___std_close_threadpool_work
(
work
);
p___std_close_threadpool_work
(
work
);
...
@@ -158,7 +158,7 @@ static void test_threadpool_work(void)
...
@@ -158,7 +158,7 @@ static void test_threadpool_work(void)
work
=
p___std_create_threadpool_work
(
threadpool_workcallback
,
&
workcalled
,
work
=
p___std_create_threadpool_work
(
threadpool_workcallback
,
&
workcalled
,
(
TP_CALLBACK_ENVIRON
*
)
&
environment3
);
(
TP_CALLBACK_ENVIRON
*
)
&
environment3
);
gle
=
GetLastError
();
gle
=
GetLastError
();
ok
(
gle
==
ERROR_INVALID_PARAMETER
,
"expected %d, got %d
\n
"
,
ERROR_INVALID_PARAMETER
,
gle
);
ok
(
gle
==
ERROR_INVALID_PARAMETER
,
"expected %d, got %
l
d
\n
"
,
ERROR_INVALID_PARAMETER
,
gle
);
ok
(
!
work
,
"expected failure
\n
"
);
ok
(
!
work
,
"expected failure
\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