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
52f7dcc5
Commit
52f7dcc5
authored
Feb 11, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr100/tests: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
61da3277
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
Makefile.in
dlls/msvcr100/tests/Makefile.in
+0
-1
msvcr100.c
dlls/msvcr100/tests/msvcr100.c
+13
-13
No files found.
dlls/msvcr100/tests/Makefile.in
View file @
52f7dcc5
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
msvcr100.dll
TESTDLL
=
msvcr100.dll
C_SRCS
=
\
C_SRCS
=
\
...
...
dlls/msvcr100/tests/msvcr100.c
View file @
52f7dcc5
...
@@ -66,7 +66,7 @@ static void __cdecl test_invalid_parameter_handler(const wchar_t *expression,
...
@@ -66,7 +66,7 @@ static void __cdecl test_invalid_parameter_handler(const wchar_t *expression,
ok
(
function
==
NULL
,
"function is not NULL
\n
"
);
ok
(
function
==
NULL
,
"function is not NULL
\n
"
);
ok
(
file
==
NULL
,
"file is not NULL
\n
"
);
ok
(
file
==
NULL
,
"file is not NULL
\n
"
);
ok
(
line
==
0
,
"line = %u
\n
"
,
line
);
ok
(
line
==
0
,
"line = %u
\n
"
,
line
);
ok
(
arg
==
0
,
"arg = %
lx
\n
"
,
(
UINT_PTR
)
arg
);
ok
(
arg
==
0
,
"arg = %
Ix
\n
"
,
arg
);
}
}
#ifdef __i386__
#ifdef __i386__
...
@@ -251,7 +251,7 @@ static BOOL init(void)
...
@@ -251,7 +251,7 @@ static BOOL init(void)
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
hcrt
=
LoadLibraryA
(
"msvcr100.dll"
);
hcrt
=
LoadLibraryA
(
"msvcr100.dll"
);
if
(
!
hcrt
)
{
if
(
!
hcrt
)
{
win_skip
(
"msvcr100.dll not installed (got %d)
\n
"
,
GetLastError
());
win_skip
(
"msvcr100.dll not installed (got %
l
d)
\n
"
,
GetLastError
());
return
FALSE
;
return
FALSE
;
}
}
...
@@ -691,34 +691,34 @@ static void test__SpinWait(void)
...
@@ -691,34 +691,34 @@ static void test__SpinWait(void)
CHECK_CALLED
(
yield_func
);
CHECK_CALLED
(
yield_func
);
ul
=
call_func1
(
pSpinWait__NumberOfSpins
,
&
sp
);
ul
=
call_func1
(
pSpinWait__NumberOfSpins
,
&
sp
);
ok
(
ul
==
1
,
"_SpinWait::_NumberOfSpins returned %u
\n
"
,
ul
);
ok
(
ul
==
1
,
"_SpinWait::_NumberOfSpins returned %
l
u
\n
"
,
ul
);
sp
.
spin
=
2
;
sp
.
spin
=
2
;
b
=
call_func1
(
pSpinWait__ShouldSpinAgain
,
&
sp
);
b
=
call_func1
(
pSpinWait__ShouldSpinAgain
,
&
sp
);
ok
(
b
,
"_SpinWait::_ShouldSpinAgain returned %x
\n
"
,
b
);
ok
(
b
,
"_SpinWait::_ShouldSpinAgain returned %x
\n
"
,
b
);
ok
(
sp
.
spin
==
1
,
"sp.spin = %u
\n
"
,
sp
.
spin
);
ok
(
sp
.
spin
==
1
,
"sp.spin = %
l
u
\n
"
,
sp
.
spin
);
b
=
call_func1
(
pSpinWait__ShouldSpinAgain
,
&
sp
);
b
=
call_func1
(
pSpinWait__ShouldSpinAgain
,
&
sp
);
ok
(
!
b
,
"_SpinWait::_ShouldSpinAgain returned %x
\n
"
,
b
);
ok
(
!
b
,
"_SpinWait::_ShouldSpinAgain returned %x
\n
"
,
b
);
ok
(
sp
.
spin
==
0
,
"sp.spin = %u
\n
"
,
sp
.
spin
);
ok
(
sp
.
spin
==
0
,
"sp.spin = %
l
u
\n
"
,
sp
.
spin
);
b
=
call_func1
(
pSpinWait__ShouldSpinAgain
,
&
sp
);
b
=
call_func1
(
pSpinWait__ShouldSpinAgain
,
&
sp
);
ok
(
b
,
"_SpinWait::_ShouldSpinAgain returned %x
\n
"
,
b
);
ok
(
b
,
"_SpinWait::_ShouldSpinAgain returned %x
\n
"
,
b
);
ok
(
sp
.
spin
==
-
1
,
"sp.spin = %u
\n
"
,
sp
.
spin
);
ok
(
sp
.
spin
==
-
1
,
"sp.spin = %
l
u
\n
"
,
sp
.
spin
);
call_func2
(
pSpinWait__SetSpinCount
,
&
sp
,
2
);
call_func2
(
pSpinWait__SetSpinCount
,
&
sp
,
2
);
b
=
call_func1
(
pSpinWait__SpinOnce
,
&
sp
);
b
=
call_func1
(
pSpinWait__SpinOnce
,
&
sp
);
ok
(
b
,
"_SpinWait::_SpinOnce returned %x
\n
"
,
b
);
ok
(
b
,
"_SpinWait::_SpinOnce returned %x
\n
"
,
b
);
ok
(
sp
.
spin
==
1
,
"sp.spin = %u
\n
"
,
sp
.
spin
);
ok
(
sp
.
spin
==
1
,
"sp.spin = %
l
u
\n
"
,
sp
.
spin
);
b
=
call_func1
(
pSpinWait__SpinOnce
,
&
sp
);
b
=
call_func1
(
pSpinWait__SpinOnce
,
&
sp
);
ok
(
b
,
"_SpinWait::_SpinOnce returned %x
\n
"
,
b
);
ok
(
b
,
"_SpinWait::_SpinOnce returned %x
\n
"
,
b
);
ok
(
sp
.
spin
==
0
,
"sp.spin = %u
\n
"
,
sp
.
spin
);
ok
(
sp
.
spin
==
0
,
"sp.spin = %
l
u
\n
"
,
sp
.
spin
);
SET_EXPECT
(
yield_func
);
SET_EXPECT
(
yield_func
);
b
=
call_func1
(
pSpinWait__SpinOnce
,
&
sp
);
b
=
call_func1
(
pSpinWait__SpinOnce
,
&
sp
);
ok
(
b
,
"_SpinWait::_SpinOnce returned %x
\n
"
,
b
);
ok
(
b
,
"_SpinWait::_SpinOnce returned %x
\n
"
,
b
);
ok
(
sp
.
spin
==
0
,
"sp.spin = %u
\n
"
,
sp
.
spin
);
ok
(
sp
.
spin
==
0
,
"sp.spin = %
l
u
\n
"
,
sp
.
spin
);
CHECK_CALLED
(
yield_func
);
CHECK_CALLED
(
yield_func
);
b
=
call_func1
(
pSpinWait__SpinOnce
,
&
sp
);
b
=
call_func1
(
pSpinWait__SpinOnce
,
&
sp
);
ok
(
!
b
,
"_SpinWait::_SpinOnce returned %x
\n
"
,
b
);
ok
(
!
b
,
"_SpinWait::_SpinOnce returned %x
\n
"
,
b
);
ok
(
sp
.
spin
==
0
||
sp
.
spin
==
4000
,
"sp.spin = %u
\n
"
,
sp
.
spin
);
ok
(
sp
.
spin
==
0
||
sp
.
spin
==
4000
,
"sp.spin = %
l
u
\n
"
,
sp
.
spin
);
call_func1
(
pSpinWait_dtor
,
&
sp
);
call_func1
(
pSpinWait_dtor
,
&
sp
);
}
}
...
@@ -763,7 +763,7 @@ static void test_reader_writer_lock(void)
...
@@ -763,7 +763,7 @@ static void test_reader_writer_lock(void)
call_func1
(
preader_writer_lock_lock
,
rw_lock
);
call_func1
(
preader_writer_lock_lock
,
rw_lock
);
thread
=
CreateThread
(
NULL
,
0
,
lock_read_thread
,
rw_lock
,
0
,
NULL
);
thread
=
CreateThread
(
NULL
,
0
,
lock_read_thread
,
rw_lock
,
0
,
NULL
);
ok
(
thread
!=
NULL
,
"CreateThread failed: %d
\n
"
,
GetLastError
());
ok
(
thread
!=
NULL
,
"CreateThread failed: %
l
d
\n
"
,
GetLastError
());
WaitForSingleObject
(
thread
,
INFINITE
);
WaitForSingleObject
(
thread
,
INFINITE
);
ok
(
GetExitCodeThread
(
thread
,
&
d
),
"GetExitCodeThread failed
\n
"
);
ok
(
GetExitCodeThread
(
thread
,
&
d
),
"GetExitCodeThread failed
\n
"
);
ok
(
!
d
,
"reader_writer_lock::try_lock_read succeeded on already locked object
\n
"
);
ok
(
!
d
,
"reader_writer_lock::try_lock_read succeeded on already locked object
\n
"
);
...
@@ -772,7 +772,7 @@ static void test_reader_writer_lock(void)
...
@@ -772,7 +772,7 @@ static void test_reader_writer_lock(void)
call_func1
(
preader_writer_lock_lock_read
,
rw_lock
);
call_func1
(
preader_writer_lock_lock_read
,
rw_lock
);
thread
=
CreateThread
(
NULL
,
0
,
lock_read_thread
,
rw_lock
,
0
,
NULL
);
thread
=
CreateThread
(
NULL
,
0
,
lock_read_thread
,
rw_lock
,
0
,
NULL
);
ok
(
thread
!=
NULL
,
"CreateThread failed: %d
\n
"
,
GetLastError
());
ok
(
thread
!=
NULL
,
"CreateThread failed: %
l
d
\n
"
,
GetLastError
());
WaitForSingleObject
(
thread
,
INFINITE
);
WaitForSingleObject
(
thread
,
INFINITE
);
ok
(
GetExitCodeThread
(
thread
,
&
d
),
"GetExitCodeThread failed
\n
"
);
ok
(
GetExitCodeThread
(
thread
,
&
d
),
"GetExitCodeThread failed
\n
"
);
ok
(
d
,
"reader_writer_lock::try_lock_read failed on object locked for reading
\n
"
);
ok
(
d
,
"reader_writer_lock::try_lock_read failed on object locked for reading
\n
"
);
...
@@ -951,7 +951,7 @@ static void test_ExternalContextBase(void)
...
@@ -951,7 +951,7 @@ static void test_ExternalContextBase(void)
ok
(
id
==
0
,
"Context::Id() = %u
\n
"
,
id
);
ok
(
id
==
0
,
"Context::Id() = %u
\n
"
,
id
);
thread
=
CreateThread
(
NULL
,
0
,
external_context_thread
,
NULL
,
0
,
NULL
);
thread
=
CreateThread
(
NULL
,
0
,
external_context_thread
,
NULL
,
0
,
NULL
);
ok
(
thread
!=
NULL
,
"CreateThread failed: %d
\n
"
,
GetLastError
());
ok
(
thread
!=
NULL
,
"CreateThread failed: %
l
d
\n
"
,
GetLastError
());
WaitForSingleObject
(
thread
,
INFINITE
);
WaitForSingleObject
(
thread
,
INFINITE
);
CloseHandle
(
thread
);
CloseHandle
(
thread
);
}
}
...
...
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