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
a8528706
Commit
a8528706
authored
Aug 24, 2010
by
Louis Lenders
Committed by
Alexandre Julliard
Aug 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree/tests: Added some simple tests for GetCORVersion.
parent
7bc214bb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
85 additions
and
0 deletions
+85
-0
configure
configure
+1
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/mscoree/tests/Makefile.in
+10
-0
mscoree.c
dlls/mscoree/tests/mscoree.c
+73
-0
No files found.
configure
View file @
a8528706
...
...
@@ -14713,6 +14713,7 @@ wine_fn_config_dll mscat32 enable_mscat32
wine_fn_config_dll mscms enable_mscms mscms
wine_fn_config_test dlls/mscms/tests mscms_test
wine_fn_config_dll mscoree enable_mscoree
wine_fn_config_test dlls/mscoree/tests mscoree_test
wine_fn_config_dll msctf enable_msctf
wine_fn_config_test dlls/msctf/tests msctf_test
wine_fn_config_dll msdaps enable_msdaps
...
...
configure.ac
View file @
a8528706
...
...
@@ -2492,6 +2492,7 @@ WINE_CONFIG_DLL(mscat32)
WINE_CONFIG_DLL(mscms,,[mscms])
WINE_CONFIG_TEST(dlls/mscms/tests)
WINE_CONFIG_DLL(mscoree)
WINE_CONFIG_TEST(dlls/mscoree/tests)
WINE_CONFIG_DLL(msctf)
WINE_CONFIG_TEST(dlls/msctf/tests)
WINE_CONFIG_DLL(msdaps)
...
...
dlls/mscoree/tests/Makefile.in
0 → 100644
View file @
a8528706
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
mscoree.dll
C_SRCS
=
\
mscoree.c
@MAKE_TEST_RULES@
dlls/mscoree/tests/mscoree.c
0 → 100644
View file @
a8528706
/*
* Copyright 2010 Louis Lenders
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "wine/test.h"
static
HMODULE
hmscoree
;
static
HRESULT
(
WINAPI
*
pGetCORVersion
)(
LPWSTR
,
DWORD
,
DWORD
*
);
static
BOOL
init_functionpointers
(
void
)
{
hmscoree
=
LoadLibraryA
(
"mscoree.dll"
);
if
(
!
hmscoree
)
{
win_skip
(
"mscoree.dll not available
\n
"
);
return
FALSE
;
}
pGetCORVersion
=
(
void
*
)
GetProcAddress
(
hmscoree
,
"GetCORVersion"
);
if
(
!
pGetCORVersion
)
{
win_skip
(
"functions not available
\n
"
);
FreeLibrary
(
hmscoree
);
return
FALSE
;
}
return
TRUE
;
}
static
void
test_versioninfo
(
void
)
{
WCHAR
version
[
MAX_PATH
];
DWORD
size
;
HRESULT
hr
;
hr
=
pGetCORVersion
(
NULL
,
MAX_PATH
,
&
size
);
todo_wine
ok
(
hr
==
E_POINTER
,
"GetCORVersion returned %08x
\n
"
,
hr
);
hr
=
pGetCORVersion
(
version
,
1
,
&
size
);
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
),
"GetCORVersion returned %08x
\n
"
,
hr
);
hr
=
pGetCORVersion
(
version
,
MAX_PATH
,
&
size
);
ok
(
hr
==
S_OK
,
"GetCORVersion returned %08x
\n
"
,
hr
);
trace
(
"latest installed .net runtime: %s
\n
"
,
wine_dbgstr_w
(
version
));
}
START_TEST
(
mscoree
)
{
if
(
!
init_functionpointers
())
return
;
test_versioninfo
();
FreeLibrary
(
hmscoree
);
}
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