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
fc376839
Commit
fc376839
authored
May 10, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
Jul 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Check that some functions are only available in 32-bit code.
parent
858811a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
23 deletions
+18
-23
environ.c
dlls/msvcrt/tests/environ.c
+6
-14
time.c
dlls/msvcrt/tests/time.c
+12
-9
No files found.
dlls/msvcrt/tests/environ.c
View file @
fc376839
...
...
@@ -95,14 +95,10 @@ static void test__environ(void)
return
;
}
/* Examine the returned pointer from __p__environ(), if available. */
if
(
p__p__environ
)
{
ok
(
*
p__p__environ
()
==
*
p_environ
,
"Expected _environ pointers to be identical
\n
"
);
}
if
(
sizeof
(
void
*
)
!=
sizeof
(
int
))
ok
(
!
p__p__environ
,
"__p__environ() should be 32-bit only
\n
"
);
else
skip
(
"__p__environ() is not available
\n
"
);
ok
(
*
p__p__environ
()
==
*
p_environ
,
"Expected _environ pointers to be identical
\n
"
);
if
(
p_get_environ
)
{
...
...
@@ -158,14 +154,10 @@ static void test__wenviron(void)
return
;
}
/* Examine the returned pointer from __p__wenviron(), if available. */
if
(
p__p__wenviron
)
{
ok
(
*
p__p__wenviron
()
==
NULL
,
"Expected _wenviron pointers to be NULL
\n
"
);
}
if
(
sizeof
(
void
*
)
!=
sizeof
(
int
))
ok
(
!
p__p__wenviron
,
"__p__wenviron() should be 32-bit only
\n
"
);
else
skip
(
"__p__wenviron() is not available
\n
"
);
ok
(
*
p__p__wenviron
()
==
NULL
,
"Expected _wenviron pointers to be NULL
\n
"
);
if
(
p_get_wenviron
)
{
...
...
dlls/msvcrt/tests/time.c
View file @
fc376839
...
...
@@ -590,15 +590,15 @@ static void test_daylight(void)
return
;
}
if
(
!
p___p__daylight
)
/* Examine the returned pointer from __p__environ(), if available. */
if
(
sizeof
(
void
*
)
!=
sizeof
(
int
))
ok
(
!
p___p__daylight
,
"___p__daylight() should be 32-bit only
\n
"
);
else
{
skip
(
"__p__daylight not available
\n
"
);
return
;
ret1
=
p__daylight
();
ret2
=
p___p__daylight
();
ok
(
ret1
&&
ret1
==
ret2
,
"got %p
\n
"
,
ret1
);
}
ret1
=
p__daylight
();
ret2
=
p___p__daylight
();
ok
(
ret1
&&
ret1
==
ret2
,
"got %p
\n
"
,
ret1
);
}
static
void
test_strftime
(
void
)
...
...
@@ -907,8 +907,11 @@ static void test__tzset(void)
char
TZ_env
[
256
];
int
ret
;
if
(
!
p___p__daylight
||
!
p___p__timezone
||
!
p___p__dstbias
)
{
skip
(
"__p__daylight, __p__timezone or __p__dstbias is not available
\n
"
);
if
(
sizeof
(
void
*
)
!=
sizeof
(
int
))
{
ok
(
!
p___p__daylight
,
"___p__daylight() should be 32-bit only
\n
"
);
ok
(
!
p___p__timezone
,
"___p__timezone() should be 32-bit only
\n
"
);
ok
(
!
p___p__dstbias
,
"___p__dstbias() should be 32-bit only
\n
"
);
return
;
}
...
...
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