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
57fb1633
Commit
57fb1633
authored
Apr 02, 2010
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Apr 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr90: Run the tests again on w2k and below.
parent
5ccbcfde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
msvcr90.c
dlls/msvcr90/tests/msvcr90.c
+19
-3
No files found.
dlls/msvcr90/tests/msvcr90.c
View file @
57fb1633
...
...
@@ -38,6 +38,8 @@ static char** (__cdecl *p__sys_errlist)(void);
static
__int64
(
__cdecl
*
p_strtoi64
)(
const
char
*
,
char
**
,
int
);
static
unsigned
__int64
(
__cdecl
*
p_strtoui64
)(
const
char
*
,
char
**
,
int
);
static
void
*
(
WINAPI
*
pEncodePointer
)(
void
*
);
int
cb_called
[
4
];
/* ########## */
...
...
@@ -152,6 +154,8 @@ static void test__initterm_e(void)
}
/* Beware that _encode_pointer is a NOP before XP
(the parameter is returned unchanged) */
static
void
test__encode_pointer
(
void
)
{
void
*
ptr
,
*
res
;
...
...
@@ -166,12 +170,20 @@ static void test__encode_pointer(void)
res
=
p_decode_pointer
(
res
);
ok
(
res
==
ptr
,
"Pointers are different after encoding and decoding
\n
"
);
ok
(
p_encoded_null
()
==
p_encode_pointer
(
NULL
),
"Error encoding null
\n
"
);
ptr
=
p_encode_pointer
(
p_encode_pointer
);
res
=
EncodePointer
(
p_encode_pointer
);
ok
(
ptr
==
res
,
"_encode_pointer produced different result than EncodePointer
\n
"
);
ok
(
p_decode_pointer
(
ptr
)
==
p_encode_pointer
,
"Error decoding pointer
\n
"
);
ok
(
p_encoded_null
()
==
p_encode_pointer
(
NULL
),
"Error encoding null
\n
"
);
/* Not present before XP */
if
(
!
pEncodePointer
)
{
win_skip
(
"EncodePointer not found
\n
"
);
return
;
}
res
=
pEncodePointer
(
p_encode_pointer
);
ok
(
ptr
==
res
,
"_encode_pointer produced different result than EncodePointer
\n
"
);
}
static
void
test_error_messages
(
void
)
...
...
@@ -231,6 +243,7 @@ static void test__strtoi64(void)
START_TEST
(
msvcr90
)
{
HMODULE
hcrt
;
HMODULE
hkernel32
;
SetLastError
(
0xdeadbeef
);
hcrt
=
LoadLibraryA
(
"msvcr90.dll"
);
...
...
@@ -255,6 +268,9 @@ START_TEST(msvcr90)
p_strtoi64
=
(
void
*
)
GetProcAddress
(
hcrt
,
"_strtoi64"
);
p_strtoui64
=
(
void
*
)
GetProcAddress
(
hcrt
,
"_strtoui64"
);
hkernel32
=
GetModuleHandleA
(
"kernel32.dll"
);
pEncodePointer
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"EncodePointer"
);
test__initterm_e
();
test__encode_pointer
();
test_error_messages
();
...
...
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