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
7cbabed5
Commit
7cbabed5
authored
Dec 05, 2019
by
Jeff Smith
Committed by
Alexandre Julliard
Dec 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Allow for differing fpu_cw returned on Windows XP.
Signed-off-by:
Jeff Smith
<
whydoubt@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
46ccea76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
thread.c
dlls/kernel32/tests/thread.c
+11
-5
No files found.
dlls/kernel32/tests/thread.c
View file @
7cbabed5
...
...
@@ -1745,14 +1745,16 @@ static unsigned int get_thread_fpu_cw( unsigned long *fpu_cw )
static
void
test_thread_fpu_cw
(
void
)
{
static
const
struct
{
unsigned
int
cw
;
unsigned
long
fpu_cw
;
}
expected_cw
[
6
]
=
static
const
struct
{
unsigned
int
cw
;
unsigned
long
fpu_cw
;
unsigned
long
fpu_cw_broken
;
}
expected_cw
[
6
]
=
{
#ifdef __i386__
{
_MCW_EM
|
_PC_53
,
MAKELONG
(
0x27f
,
0x1f80
)
},
{
_MCW_EM
|
_PC_53
,
MAKELONG
(
0x27f
,
0x1f80
)
},
{
_EM_INEXACT
|
_RC_CHOP
|
_PC_24
,
MAKELONG
(
0xc60
,
0x7000
)
},
{
_EM_INEXACT
|
_RC_CHOP
|
_PC_24
,
MAKELONG
(
0xc60
,
0x7000
)
,
MAKELONG
(
0xc60
,
0x1f80
)
},
{
_MCW_EM
|
_PC_53
,
MAKELONG
(
0x27f
,
0x1f80
)
},
{
_EM_INEXACT
|
_RC_CHOP
|
_PC_24
,
MAKELONG
(
0xc60
,
0x7000
)
},
{
_EM_INEXACT
|
_RC_CHOP
|
_PC_24
,
MAKELONG
(
0xc60
,
0x7000
)
,
MAKELONG
(
0xc60
,
0x1f80
)
},
{
_MCW_EM
|
_PC_53
,
MAKELONG
(
0x27f
,
0x1f80
)
}
#elif defined(__x86_64__)
{
_MCW_EM
|
_PC_64
,
MAKELONG
(
0x27f
,
0x1f80
)
},
...
...
@@ -1788,7 +1790,9 @@ static void test_thread_fpu_cw(void)
cw
=
_control87
(
0
,
0
);
fpu_cw
=
get_fpu_cw
();
ok
(
cw
==
expected_cw
[
2
].
cw
,
"expected %#x got %#x
\n
"
,
expected_cw
[
2
].
cw
,
cw
);
ok
(
fpu_cw
==
expected_cw
[
2
].
fpu_cw
,
"expected %#lx got %#lx
\n
"
,
expected_cw
[
2
].
fpu_cw
,
fpu_cw
);
ok
(
fpu_cw
==
expected_cw
[
2
].
fpu_cw
||
broken
(
expected_cw
[
2
].
fpu_cw_broken
&&
fpu_cw
==
expected_cw
[
2
].
fpu_cw_broken
),
"expected %#lx got %#lx
\n
"
,
expected_cw
[
2
].
fpu_cw
,
fpu_cw
);
cw
=
get_thread_fpu_cw
(
&
fpu_cw
);
ok
(
cw
==
expected_cw
[
3
].
cw
,
"expected %#x got %#x
\n
"
,
expected_cw
[
3
].
cw
,
cw
);
...
...
@@ -1797,7 +1801,9 @@ static void test_thread_fpu_cw(void)
cw
=
_control87
(
0
,
0
);
fpu_cw
=
get_fpu_cw
();
ok
(
cw
==
expected_cw
[
4
].
cw
,
"expected %#x got %#x
\n
"
,
expected_cw
[
4
].
cw
,
cw
);
ok
(
fpu_cw
==
expected_cw
[
4
].
fpu_cw
,
"expected %#lx got %#lx
\n
"
,
expected_cw
[
4
].
fpu_cw
,
fpu_cw
);
ok
(
fpu_cw
==
expected_cw
[
4
].
fpu_cw
||
broken
(
expected_cw
[
4
].
fpu_cw_broken
&&
fpu_cw
==
expected_cw
[
4
].
fpu_cw_broken
),
"expected %#lx got %#lx
\n
"
,
expected_cw
[
4
].
fpu_cw
,
fpu_cw
);
_control87
(
initial_cw
,
_MCW_EM
|
_MCW_RC
|
_MCW_PC
);
cw
=
_control87
(
0
,
0
);
...
...
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