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
cef4c8c3
Commit
cef4c8c3
authored
May 13, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
May 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr120: Add feupdateenv tests.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
06f205d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
msvcr120.c
dlls/msvcr120/tests/msvcr120.c
+18
-0
No files found.
dlls/msvcr120/tests/msvcr120.c
View file @
cef4c8c3
...
...
@@ -186,6 +186,7 @@ static int (CDECL *p_fegetexceptflag)(fexcept_t*,int);
static
int
(
CDECL
*
p_fesetexceptflag
)(
const
fexcept_t
*
,
int
);
static
int
(
CDECL
*
p_fetestexcept
)(
int
);
static
int
(
CDECL
*
p_feclearexcept
)(
int
);
static
int
(
CDECL
*
p_feupdateenv
)(
fenv_t
*
);
static
int
(
CDECL
*
p__clearfp
)(
void
);
static
_locale_t
(
__cdecl
*
p_wcreate_locale
)(
int
,
const
wchar_t
*
);
static
void
(
__cdecl
*
p_free_locale
)(
_locale_t
);
...
...
@@ -265,6 +266,7 @@ static BOOL init(void)
SET
(
p_fesetexceptflag
,
"fesetexceptflag"
);
SET
(
p_fetestexcept
,
"fetestexcept"
);
SET
(
p_feclearexcept
,
"feclearexcept"
);
SET
(
p_feupdateenv
,
"feupdateenv"
);
SET
(
p__clearfp
,
"_clearfp"
);
SET
(
p_vsscanf
,
"vsscanf"
);
...
...
@@ -945,6 +947,22 @@ static void test_feenv(void)
ok
(
!
ret
,
"feclearexceptflag returned %x
\n
"
,
ret
);
except
=
p_fetestexcept
(
FE_ALL_EXCEPT
);
ok
(
!
except
,
"expected 0, got %lx
\n
"
,
except
);
p__clearfp
();
except
=
FE_DIVBYZERO
;
ret
=
p_fesetexceptflag
(
&
except
,
FE_DIVBYZERO
);
ok
(
!
ret
,
"fesetexceptflag returned %x
\n
"
,
ret
);
ret
=
p_fegetenv
(
&
env
);
ok
(
!
ret
,
"fegetenv returned %x
\n
"
,
ret
);
p__clearfp
();
except
=
FE_INVALID
;
ret
=
p_fesetexceptflag
(
&
except
,
FE_INVALID
);
ok
(
!
ret
,
"fesetexceptflag returned %x
\n
"
,
ret
);
ret
=
p_feupdateenv
(
&
env
);
ok
(
!
ret
,
"feupdateenv returned %x
\n
"
,
ret
);
ret
=
_statusfp
();
ok
(
ret
==
(
_EM_ZERODIVIDE
|
_EM_INVALID
),
"_statusfp returned %x
\n
"
,
ret
);
p__clearfp
();
}
static
void
test__wcreate_locale
(
void
)
...
...
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