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
dad9dc94
Commit
dad9dc94
authored
Feb 05, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
Feb 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree/tests: Fix failures when .NET 4 but not 1 or 2 is installed.
parent
ed1a03e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
mscoree.c
dlls/mscoree/tests/mscoree.c
+16
-3
No files found.
dlls/mscoree/tests/mscoree.c
View file @
dad9dc94
...
...
@@ -34,6 +34,8 @@ static HRESULT (WINAPI *pLoadLibraryShim)(LPCWSTR, LPCWSTR, LPVOID, HMODULE*);
static
HRESULT
(
WINAPI
*
pCreateConfigStream
)(
LPCWSTR
,
IStream
**
);
static
HRESULT
(
WINAPI
*
pCreateInterface
)(
REFCLSID
,
REFIID
,
VOID
**
);
static
int
no_legacy_runtimes
;
static
BOOL
init_functionpointers
(
void
)
{
hmscoree
=
LoadLibraryA
(
"mscoree.dll"
);
...
...
@@ -85,9 +87,8 @@ static void test_versioninfo(void)
hr
=
pGetCORVersion
(
version
,
1
,
&
size
);
if
(
hr
==
CLR_E_SHIM_RUNTIME
)
{
/* FIXME: Get Mono packaged properly so we can fail here. */
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
),
"GetCORVersion returned %08x
\n
"
,
hr
);
skip
(
"No .NET runtimes are installed
\n
"
);
no_legacy_runtimes
=
1
;
win_skip
(
"No legacy .NET runtimes are installed
\n
"
);
return
;
}
...
...
@@ -208,6 +209,12 @@ static void test_loadlibraryshim(void)
HMODULE
hdll
;
CHAR
dllpath
[
MAX_PATH
];
if
(
no_legacy_runtimes
)
{
win_skip
(
"No legacy .NET runtimes are installed
\n
"
);
return
;
}
hr
=
pLoadLibraryShim
(
fusion
,
v1_1
,
NULL
,
&
hdll
);
ok
(
hr
==
S_OK
||
hr
==
E_HANDLE
,
"LoadLibraryShim failed, hr=%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
...
...
@@ -395,6 +402,12 @@ static void test_createinstance(void)
HRESULT
hr
;
ICLRMetaHost
*
host
;
if
(
no_legacy_runtimes
)
{
/* If we don't have 1.x or 2.0 runtimes, we should at least have .NET 4. */
ok
(
pCreateInterface
!=
NULL
,
"no legacy runtimes or .NET 4 interfaces available
\n
"
);
}
if
(
!
pCreateInterface
)
{
win_skip
(
"Function CreateInterface not found.
\n
"
);
...
...
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