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
dc4126e8
Commit
dc4126e8
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/tests: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7bbb7042
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
Makefile.in
dlls/msvcp140/tests/Makefile.in
+0
-1
msvcp140.c
dlls/msvcp140/tests/msvcp140.c
+6
-6
No files found.
dlls/msvcp140/tests/Makefile.in
View file @
dc4126e8
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
msvcp140.dll
C_SRCS
=
\
...
...
dlls/msvcp140/tests/msvcp140.c
View file @
dc4126e8
...
...
@@ -301,7 +301,7 @@ static BOOL init(void)
static
void
test_thrd
(
void
)
{
ok
(
p__Thrd_id
()
==
GetCurrentThreadId
(),
"expected same id, got _Thrd_id %u GetCurrentThreadId %u
\n
"
,
"expected same id, got _Thrd_id %u GetCurrentThreadId %
l
u
\n
"
,
p__Thrd_id
(),
GetCurrentThreadId
());
}
...
...
@@ -529,7 +529,7 @@ static void test_chore(void)
ok
(
chore
.
callback
==
chore_callback
,
"chore.callback = %p, expected %p
\n
"
,
chore
.
callback
,
chore_callback
);
ok
(
chore
.
arg
==
event
,
"chore.arg = %p, expected %p
\n
"
,
chore
.
arg
,
event
);
wait
=
WaitForSingleObject
(
event
,
500
);
ok
(
wait
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %d
\n
"
,
wait
);
ok
(
wait
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %
l
d
\n
"
,
wait
);
if
(
!
GetProcAddress
(
GetModuleHandleA
(
"kernel32"
),
"CreateThreadpoolWork"
))
{
...
...
@@ -545,12 +545,12 @@ static void test_chore(void)
ok
(
old_chore
.
work
!=
chore
.
work
,
"new threadpool work was not created
\n
"
);
p__Release_chore
(
&
old_chore
);
wait
=
WaitForSingleObject
(
event
,
500
);
ok
(
wait
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %d
\n
"
,
wait
);
ok
(
wait
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %
l
d
\n
"
,
wait
);
ret
=
p__Reschedule_chore
(
&
chore
);
ok
(
!
ret
,
"_Reschedule_chore returned %d
\n
"
,
ret
);
wait
=
WaitForSingleObject
(
event
,
500
);
ok
(
wait
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %d
\n
"
,
wait
);
ok
(
wait
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %
l
d
\n
"
,
wait
);
p__Release_chore
(
&
chore
);
ok
(
!
chore
.
work
,
"chore.work != NULL
\n
"
);
...
...
@@ -1256,12 +1256,12 @@ static void test__Winerror_message(void)
ret
=
p__Winerror_message
(
0
,
buf
,
sizeof
(
buf
));
ok
(
ret
==
ret_fm
||
(
ret_fm
>
2
&&
buf_fm
[
ret_fm
-
1
]
==
'\n'
&&
buf_fm
[
ret_fm
-
2
]
==
'\r'
&&
ret
+
2
==
ret_fm
),
"ret = %
u, expected %
u
\n
"
,
ret
,
ret_fm
);
"ret = %
lu, expected %l
u
\n
"
,
ret
,
ret_fm
);
ok
(
!
strncmp
(
buf
,
buf_fm
,
ret
),
"buf = %s, expected %s
\n
"
,
buf
,
buf_fm
);
memset
(
buf
,
'a'
,
sizeof
(
buf
));
ret
=
p__Winerror_message
(
0
,
buf
,
2
);
ok
(
!
ret
,
"ret = %u
\n
"
,
ret
);
ok
(
!
ret
,
"ret = %
l
u
\n
"
,
ret
);
ok
(
buf
[
0
]
==
'a'
,
"buf = %s
\n
"
,
buf
);
}
...
...
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