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
f803e9d3
Commit
f803e9d3
authored
Feb 09, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fusion/tests: Skip tests on .NET 1.1.
parent
54b2984d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
asmcache.c
dlls/fusion/tests/asmcache.c
+29
-0
corerror.h
include/corerror.h
+2
-0
No files found.
dlls/fusion/tests/asmcache.c
View file @
f803e9d3
...
@@ -835,6 +835,32 @@ static void create_assembly(LPCSTR file)
...
@@ -835,6 +835,32 @@ static void create_assembly(LPCSTR file)
CloseHandle
(
hfile
);
CloseHandle
(
hfile
);
}
}
static
BOOL
check_dotnet20
(
void
)
{
IAssemblyCache
*
cache
;
HRESULT
hr
;
BOOL
ret
=
FALSE
;
static
const
WCHAR
winedll
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
create_assembly
(
"wine.dll"
);
hr
=
pCreateAssemblyCache
(
&
cache
,
0
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
hr
=
IAssemblyCache_InstallAssembly
(
cache
,
0
,
winedll
,
NULL
);
if
(
hr
==
S_OK
)
ret
=
TRUE
;
else
if
(
hr
==
CLDB_E_FILE_OLDVER
)
win_skip
(
"Tests can't be run on older .NET version (.NET 1.1)
\n
"
);
else
ok
(
0
,
"Expected S_OK, got %08x
\n
"
,
hr
);
DeleteFileA
(
"wine.dll"
);
IAssemblyCache_Release
(
cache
);
return
ret
;
}
static
void
test_CreateAssemblyCache
(
void
)
static
void
test_CreateAssemblyCache
(
void
)
{
{
IAssemblyCache
*
cache
;
IAssemblyCache
*
cache
;
...
@@ -1464,6 +1490,9 @@ START_TEST(asmcache)
...
@@ -1464,6 +1490,9 @@ START_TEST(asmcache)
if
(
!
init_functionpointers
())
if
(
!
init_functionpointers
())
return
;
return
;
if
(
!
check_dotnet20
())
return
;
test_CreateAssemblyCache
();
test_CreateAssemblyCache
();
test_InstallAssembly
();
test_InstallAssembly
();
test_QueryAssemblyInfo
();
test_QueryAssemblyInfo
();
...
...
include/corerror.h
View file @
f803e9d3
...
@@ -121,4 +121,6 @@
...
@@ -121,4 +121,6 @@
#define FUSION_E_INVALID_NAME EMAKEHR(0x1047)
#define FUSION_E_INVALID_NAME EMAKEHR(0x1047)
#define CLDB_E_FILE_OLDVER EMAKEHR(0x1107)
#endif
/* __WINE_CORERROR_H */
#endif
/* __WINE_CORERROR_H */
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