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
73a996de
Commit
73a996de
authored
May 08, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
May 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp/tests: Force dll cleanup code to get executed (for valgrind).
parent
6fb5155f
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
10 deletions
+34
-10
misc.c
dlls/msvcp100/tests/misc.c
+4
-1
string.c
dlls/msvcp100/tests/string.c
+4
-1
ios.c
dlls/msvcp60/tests/ios.c
+4
-1
string.c
dlls/msvcp60/tests/string.c
+4
-1
ios.c
dlls/msvcp90/tests/ios.c
+6
-2
misc.c
dlls/msvcp90/tests/misc.c
+6
-2
string.c
dlls/msvcp90/tests/string.c
+6
-2
No files found.
dlls/msvcp100/tests/misc.c
View file @
73a996de
...
...
@@ -93,11 +93,12 @@ static void init_thiscall_thunk(void)
#endif
/* __i386__ */
static
HMODULE
msvcp
;
#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
msvcp
=
LoadLibraryA
(
"msvcp100.dll"
);
msvcp
=
LoadLibraryA
(
"msvcp100.dll"
);
if
(
!
msvcp
)
{
win_skip
(
"msvcp100.dll not installed
\n
"
);
return
FALSE
;
...
...
@@ -200,4 +201,6 @@ START_TEST(misc)
return
;
test__Container_base12
();
FreeLibrary
(
msvcp
);
}
dlls/msvcp100/tests/string.c
View file @
73a996de
...
...
@@ -83,11 +83,12 @@ static void (__thiscall *_Yarn_char_dtor)(_Yarn_char *this);
static
const
char
*
(
__thiscall
*
_Yarn_char_c_str
)(
const
_Yarn_char
*
this
);
static
char
(
__thiscall
*
_Yarn_char_empty
)(
const
_Yarn_char
*
this
);
static
HMODULE
msvcp
;
#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
msvcp
=
LoadLibraryA
(
"msvcp100.dll"
);
msvcp
=
LoadLibraryA
(
"msvcp100.dll"
);
if
(
!
msvcp
)
{
win_skip
(
"msvcp100.dll not installed
\n
"
);
return
FALSE
;
...
...
@@ -173,4 +174,6 @@ START_TEST(string)
return
;
test__Yarn_char
();
FreeLibrary
(
msvcp
);
}
dlls/msvcp60/tests/ios.c
View file @
73a996de
...
...
@@ -565,11 +565,12 @@ static void init_thiscall_thunk(void)
#endif
/* __i386__ */
static
HMODULE
msvcp
;
#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
msvcp
=
LoadLibraryA
(
"msvcp60.dll"
);
msvcp
=
LoadLibraryA
(
"msvcp60.dll"
);
if
(
!
msvcp
)
{
win_skip
(
"msvcp60.dll not installed
\n
"
);
return
FALSE
;
...
...
@@ -1651,4 +1652,6 @@ START_TEST(ios)
test_istream_tellg
();
test_istream_getline
();
test_ostream_print_ushort
();
FreeLibrary
(
msvcp
);
}
dlls/msvcp60/tests/string.c
View file @
73a996de
...
...
@@ -149,11 +149,12 @@ static void init_thiscall_thunk(void)
#endif
/* __i386__ */
static
HMODULE
msvcp
;
#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
msvcp
=
LoadLibraryA
(
"msvcp60.dll"
);
msvcp
=
LoadLibraryA
(
"msvcp60.dll"
);
if
(
!
msvcp
)
{
win_skip
(
"msvcp60.dll not installed
\n
"
);
return
FALSE
;
...
...
@@ -701,4 +702,6 @@ START_TEST(string)
test_basic_string_char_replace
();
test_basic_string_wchar
();
test_basic_string_wchar_swap
();
FreeLibrary
(
msvcp
);
}
dlls/msvcp90/tests/ios.c
View file @
73a996de
...
...
@@ -590,12 +590,13 @@ static void init_thiscall_thunk(void)
#endif
/* __i386__ */
static
HMODULE
msvcr
,
msvcp
;
#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"
);
HMODULE
msvcp
=
LoadLibraryA
(
"msvcp90.dll"
);
msvcr
=
LoadLibraryA
(
"msvcr90.dll"
);
msvcp
=
LoadLibraryA
(
"msvcp90.dll"
);
if
(
!
msvcr
||
!
msvcp
)
{
win_skip
(
"msvcp90.dll or msvcrt90.dll not installed
\n
"
);
return
FALSE
;
...
...
@@ -1969,4 +1970,7 @@ START_TEST(ios)
test_ostream_print_ushort
();
ok
(
!
invalid_parameter
,
"invalid_parameter_handler was invoked too many times
\n
"
);
FreeLibrary
(
msvcr
);
FreeLibrary
(
msvcp
);
}
dlls/msvcp90/tests/misc.c
View file @
73a996de
...
...
@@ -183,12 +183,13 @@ static void init_thiscall_thunk(void)
#endif
/* __i386__ */
static
HMODULE
msvcr
,
msvcp
;
#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"
);
HMODULE
msvcp
=
LoadLibraryA
(
"msvcp90.dll"
);
msvcr
=
LoadLibraryA
(
"msvcr90.dll"
);
msvcp
=
LoadLibraryA
(
"msvcp90.dll"
);
if
(
!
msvcr
||
!
msvcp
)
{
win_skip
(
"msvcp90.dll or msvcrt90.dll not installed
\n
"
);
return
FALSE
;
...
...
@@ -863,4 +864,7 @@ START_TEST(misc)
test_complex
();
ok
(
!
invalid_parameter
,
"invalid_parameter_handler was invoked too many times
\n
"
);
FreeLibrary
(
msvcr
);
FreeLibrary
(
msvcp
);
}
dlls/msvcp90/tests/string.c
View file @
73a996de
...
...
@@ -170,12 +170,13 @@ static void init_thiscall_thunk(void)
#endif
/* __i386__ */
static
HMODULE
msvcr
,
msvcp
;
#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"
);
HMODULE
msvcp
=
LoadLibraryA
(
"msvcp90.dll"
);
msvcr
=
LoadLibraryA
(
"msvcr90.dll"
);
msvcp
=
LoadLibraryA
(
"msvcp90.dll"
);
if
(
!
msvcr
||
!
msvcp
)
{
win_skip
(
"msvcp90.dll or msvcrt90.dll not installed
\n
"
);
return
FALSE
;
...
...
@@ -784,4 +785,7 @@ START_TEST(string)
test_basic_string_char_find_last_not_of
();
ok
(
!
invalid_parameter
,
"invalid_parameter_handler was invoked too many times
\n
"
);
FreeLibrary
(
msvcr
);
FreeLibrary
(
msvcp
);
}
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