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
8a96e66f
Commit
8a96e66f
authored
May 27, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
May 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90/tests: Don't check if msvcp90 functions exists in misc tests.
parent
031ae07e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
53 deletions
+34
-53
misc.c
dlls/msvcp90/tests/misc.c
+34
-53
No files found.
dlls/msvcp90/tests/misc.c
View file @
8a96e66f
...
...
@@ -162,6 +162,8 @@ static void* do_call_func3(void *func, void *_this,
#endif
/* __i386__ */
#define SETNOFAIL(x,y) x = (void*)GetProcAddress(msvcp,y)
#define SET(x,y) do { SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y); } while(0)
static
BOOL
init
(
void
)
{
HMODULE
msvcr
=
LoadLibraryA
(
"msvcr90.dll"
);
...
...
@@ -180,39 +182,39 @@ static BOOL init(void)
p_set_invalid_parameter_handler
(
test_invalid_parameter_handler
);
if
(
sizeof
(
void
*
)
==
8
)
{
/* 64-bit initialization */
p_char_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@D@std@@SAXAEADAEBD@Z"
);
p_wchar_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@_W@std@@SAXAEA_WAEB_W@Z"
);
p_short_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@G@std@@SAXAEAGAEBG@Z"
);
p_char_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@D@std@@SA_NAEBD0@Z"
);
p_wchar_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@_W@std@@SA_NAEB_W0@Z"
);
p_short_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@G@std@@SA_NAEBG0@Z"
);
p_Copy_s
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?_Copy_s@?$char_traits@D@std@@SAPEADPEAD_KPEBD1@Z"
);
p_char_address
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?address@?$allocator@D@std@@QEBAPEADAEAD@Z"
);
p_char_ctor
=
(
void
*
)
GetProcAddress
(
msvcp
,
"??0?$allocator@D@std@@QEAA@XZ"
);
p_char_deallocate
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?deallocate@?$allocator@D@std@@QEAAXPEAD_K@Z"
);
p_char_allocate
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?allocate@?$allocator@D@std@@QEAAPEAD_K@Z"
);
p_char_construct
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?construct@?$allocator@D@std@@QEAAXPEADAEBD@Z"
);
p_char_max_size
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?max_size@?$allocator@D@std@@QEBA_KXZ"
);
SET
(
p_char_assign
,
"?assign@?$char_traits@D@std@@SAXAEADAEBD@Z"
);
SET
(
p_wchar_assign
,
"?assign@?$char_traits@_W@std@@SAXAEA_WAEB_W@Z"
);
SET
(
p_short_assign
,
"?assign@?$char_traits@G@std@@SAXAEAGAEBG@Z"
);
SET
(
p_char_eq
,
"?eq@?$char_traits@D@std@@SA_NAEBD0@Z"
);
SET
(
p_wchar_eq
,
"?eq@?$char_traits@_W@std@@SA_NAEB_W0@Z"
);
SET
(
p_short_eq
,
"?eq@?$char_traits@G@std@@SA_NAEBG0@Z"
);
SET
(
p_Copy_s
,
"?_Copy_s@?$char_traits@D@std@@SAPEADPEAD_KPEBD1@Z"
);
SET
(
p_char_address
,
"?address@?$allocator@D@std@@QEBAPEADAEAD@Z"
);
SET
(
p_char_ctor
,
"??0?$allocator@D@std@@QEAA@XZ"
);
SET
(
p_char_deallocate
,
"?deallocate@?$allocator@D@std@@QEAAXPEAD_K@Z"
);
SET
(
p_char_allocate
,
"?allocate@?$allocator@D@std@@QEAAPEAD_K@Z"
);
SET
(
p_char_construct
,
"?construct@?$allocator@D@std@@QEAAXPEADAEBD@Z"
);
SET
(
p_char_max_size
,
"?max_size@?$allocator@D@std@@QEBA_KXZ"
);
}
else
{
p_char_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@D@std@@SAXAADABD@Z"
);
p_wchar_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@_W@std@@SAXAA_WAB_W@Z"
);
p_short_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@G@std@@SAXAAGABG@Z"
);
p_char_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@D@std@@SA_NABD0@Z"
);
p_wchar_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@_W@std@@SA_NAB_W0@Z"
);
p_short_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@G@std@@SA_NABG0@Z"
);
p_Copy_s
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?_Copy_s@?$char_traits@D@std@@SAPADPADIPBDI@Z"
);
p_char_address
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?address@?$allocator@D@std@@QBEPADAAD@Z"
);
p_char_ctor
=
(
void
*
)
GetProcAddress
(
msvcp
,
"??0?$allocator@D@std@@QAE@XZ"
);
p_char_deallocate
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?deallocate@?$allocator@D@std@@QAEXPADI@Z"
);
p_char_allocate
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?allocate@?$allocator@D@std@@QAEPADI@Z"
);
p_char_construct
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?construct@?$allocator@D@std@@QAEXPADABD@Z"
);
p_char_max_size
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?max_size@?$allocator@D@std@@QBEIXZ"
);
SET
(
p_char_assign
,
"?assign@?$char_traits@D@std@@SAXAADABD@Z"
);
SET
(
p_wchar_assign
,
"?assign@?$char_traits@_W@std@@SAXAA_WAB_W@Z"
);
SET
(
p_short_assign
,
"?assign@?$char_traits@G@std@@SAXAAGABG@Z"
);
SET
(
p_char_eq
,
"?eq@?$char_traits@D@std@@SA_NABD0@Z"
);
SET
(
p_wchar_eq
,
"?eq@?$char_traits@_W@std@@SA_NAB_W0@Z"
);
SET
(
p_short_eq
,
"?eq@?$char_traits@G@std@@SA_NABG0@Z"
);
SET
(
p_Copy_s
,
"?_Copy_s@?$char_traits@D@std@@SAPADPADIPBDI@Z"
);
SET
(
p_char_address
,
"?address@?$allocator@D@std@@QBEPADAAD@Z"
);
SET
(
p_char_ctor
,
"??0?$allocator@D@std@@QAE@XZ"
);
SET
(
p_char_deallocate
,
"?deallocate@?$allocator@D@std@@QAEXPADI@Z"
);
SET
(
p_char_allocate
,
"?allocate@?$allocator@D@std@@QAEPADI@Z"
);
SET
(
p_char_construct
,
"?construct@?$allocator@D@std@@QAEXPADABD@Z"
);
SET
(
p_char_max_size
,
"?max_size@?$allocator@D@std@@QBEIXZ"
);
}
return
TRUE
;
...
...
@@ -223,11 +225,6 @@ static void test_assign(void)
const
char
in
[]
=
"abc"
;
char
out
[
4
];
if
(
!
p_char_assign
||
!
p_wchar_assign
||
!
p_short_assign
)
{
win_skip
(
"assign tests skipped
\n
"
);
return
;
}
out
[
1
]
=
'#'
;
p_char_assign
(
out
,
in
);
ok
(
out
[
0
]
==
in
[
0
],
"out[0] = %c
\n
"
,
out
[
0
]);
...
...
@@ -254,11 +251,6 @@ static void test_equal(void)
static
const
char
in4
[]
=
"b"
;
BYTE
ret
;
if
(
!
p_char_eq
||
!
p_wchar_eq
||
!
p_short_eq
)
{
win_skip
(
"equal tests skipped
\n
"
);
return
;
}
ret
=
p_char_eq
(
in1
,
in2
);
ok
(
ret
==
TRUE
,
"ret = %d
\n
"
,
(
int
)
ret
);
ret
=
p_char_eq
(
in1
,
in3
);
...
...
@@ -286,11 +278,6 @@ static void test_Copy_s(void)
static
const
char
src
[]
=
"abcd"
;
char
dest
[
32
],
*
ret
;
if
(
!
p_Copy_s
)
{
win_skip
(
"Copy_s tests skipped
\n
"
);
return
;
}
dest
[
4
]
=
'#'
;
dest
[
5
]
=
'\0'
;
ret
=
p_Copy_s
(
dest
,
4
,
src
,
4
);
...
...
@@ -335,12 +322,6 @@ static void test_allocator_char(void)
char
val
;
unsigned
int
size
;
if
(
!
p_char_address
||
!
p_char_ctor
||
!
p_char_deallocate
||
!
p_char_allocate
||
!
p_char_construct
||
!
p_char_max_size
)
{
win_skip
(
"allocator<char> class not available
\n
"
);
return
;
}
allocator
=
call_func1
(
p_char_ctor
,
allocator
);
ok
(
allocator
==
(
void
*
)
0xdeadbeef
,
"allocator = %p
\n
"
,
allocator
);
...
...
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