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
8116b4cc
Commit
8116b4cc
authored
Feb 11, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr120/tests: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
52f7dcc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
Makefile.in
dlls/msvcr120/tests/Makefile.in
+0
-1
msvcr120.c
dlls/msvcr120/tests/msvcr120.c
+11
-11
No files found.
dlls/msvcr120/tests/Makefile.in
View file @
8116b4cc
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
msvcr120.dll
C_SRCS
=
\
...
...
dlls/msvcr120/tests/msvcr120.c
View file @
8116b4cc
...
...
@@ -540,7 +540,7 @@ static void test__GetConcurrency(void)
GetSystemInfo
(
&
si
);
c
=
(
*
p__GetConcurrency
)();
ok
(
c
==
si
.
dwNumberOfProcessors
,
"expected %u, got %u
\n
"
,
si
.
dwNumberOfProcessors
,
c
);
ok
(
c
==
si
.
dwNumberOfProcessors
,
"expected %
l
u, got %u
\n
"
,
si
.
dwNumberOfProcessors
,
c
);
}
static
void
test_gettnames
(
void
*
(
CDECL
*
p_gettnames
)(
void
))
...
...
@@ -587,7 +587,7 @@ static void test_gettnames(void* (CDECL *p_gettnames)(void))
ok
(
ret
->
str
[
42
]
+
strlen
(
ret
->
str
[
42
])
+
1
==
(
char
*
)
ret
->
wstr
[
0
]
||
ret
->
str
[
42
]
+
strlen
(
ret
->
str
[
42
])
+
2
==
(
char
*
)
ret
->
wstr
[
0
],
"ret->str[42] = %p len = %d, ret->wstr[0] = %p
\n
"
,
"ret->str[42] = %p len = %
I
d, ret->wstr[0] = %p
\n
"
,
ret
->
str
[
42
],
strlen
(
ret
->
str
[
42
]),
ret
->
wstr
[
0
]);
p_free
(
ret
);
...
...
@@ -749,11 +749,11 @@ static void test_critical_section(void)
thread
=
(
HANDLE
)
_beginthreadex
(
NULL
,
0
,
test_critical_section_lock
,
NULL
,
0
,
NULL
);
ok
(
thread
!=
INVALID_HANDLE_VALUE
,
"_beginthread failed (%d)
\n
"
,
errno
);
ret
=
WaitForSingleObject
(
thread
,
100
);
ok
(
ret
==
WAIT_TIMEOUT
,
"WaitForSingleObject returned %d
\n
"
,
ret
);
ok
(
ret
==
WAIT_TIMEOUT
,
"WaitForSingleObject returned %
l
d
\n
"
,
ret
);
enter_flag
=
1
;
call_func1
(
p_critical_section_unlock
,
&
cs
);
ret
=
WaitForSingleObject
(
thread
,
INFINITE
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %d
\n
"
,
ret
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %
l
d
\n
"
,
ret
);
ret
=
CloseHandle
(
thread
);
ok
(
ret
,
"CloseHandle failed
\n
"
);
...
...
@@ -762,7 +762,7 @@ static void test_critical_section(void)
thread
=
(
HANDLE
)
_beginthreadex
(
NULL
,
0
,
test_critical_section_try_lock
,
NULL
,
0
,
NULL
);
ok
(
thread
!=
INVALID_HANDLE_VALUE
,
"_beginthread failed (%d)
\n
"
,
errno
);
ret
=
WaitForSingleObject
(
thread
,
INFINITE
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %d
\n
"
,
ret
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %
l
d
\n
"
,
ret
);
ret
=
CloseHandle
(
thread
);
ok
(
ret
,
"CloseHandle failed
\n
"
);
call_func1
(
p_critical_section_unlock
,
&
cs
);
...
...
@@ -773,7 +773,7 @@ static void test_critical_section(void)
thread
=
(
HANDLE
)
_beginthreadex
(
NULL
,
0
,
test_critical_section_try_lock
,
NULL
,
0
,
NULL
);
ok
(
thread
!=
INVALID_HANDLE_VALUE
,
"_beginthread failed (%d)
\n
"
,
errno
);
ret
=
WaitForSingleObject
(
thread
,
INFINITE
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %d
\n
"
,
ret
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %
l
d
\n
"
,
ret
);
ret
=
CloseHandle
(
thread
);
ok
(
ret
,
"CloseHandle failed
\n
"
);
thread
=
(
HANDLE
)
_beginthreadex
(
NULL
,
0
,
test_critical_section_try_lock_for
,
NULL
,
0
,
NULL
);
...
...
@@ -782,7 +782,7 @@ static void test_critical_section(void)
Sleep
(
10
);
call_func1
(
p_critical_section_unlock
,
&
cs
);
ret
=
WaitForSingleObject
(
thread
,
INFINITE
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %d
\n
"
,
ret
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %
l
d
\n
"
,
ret
);
ret
=
CloseHandle
(
thread
);
ok
(
ret
,
"CloseHandle failed
\n
"
);
...
...
@@ -791,11 +791,11 @@ static void test_critical_section(void)
thread
=
(
HANDLE
)
_beginthreadex
(
NULL
,
0
,
test_critical_section_scoped_lock
,
NULL
,
0
,
NULL
);
ok
(
thread
!=
INVALID_HANDLE_VALUE
,
"_beginthread failed (%d)
\n
"
,
errno
);
ret
=
WaitForSingleObject
(
thread
,
100
);
ok
(
ret
==
WAIT_TIMEOUT
,
"WaitForSingleObject returned %d
\n
"
,
ret
);
ok
(
ret
==
WAIT_TIMEOUT
,
"WaitForSingleObject returned %
l
d
\n
"
,
ret
);
enter_flag
=
1
;
call_func1
(
p_critical_section_unlock
,
&
cs
);
ret
=
WaitForSingleObject
(
thread
,
INFINITE
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %d
\n
"
,
ret
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %
l
d
\n
"
,
ret
);
ret
=
CloseHandle
(
thread
);
ok
(
ret
,
"CloseHandle failed
\n
"
);
call_func1
(
p_critical_section_dtor
,
&
cs
);
...
...
@@ -1063,10 +1063,10 @@ static void test__Condition_variable(void)
call_func1
(
p__Condition_variable_notify_one
,
&
cv
);
ret
=
WaitForSingleObject
(
threads
[
1
],
500
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %d
\n
"
,
ret
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %
l
d
\n
"
,
ret
);
call_func1
(
p__Condition_variable_notify_one
,
&
cv
);
ret
=
WaitForSingleObject
(
threads
[
0
],
500
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %d
\n
"
,
ret
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %
l
d
\n
"
,
ret
);
CloseHandle
(
threads
[
0
]);
CloseHandle
(
threads
[
1
]);
...
...
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