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
b76007d8
Commit
b76007d8
authored
Feb 19, 2009
by
Nicolas Le Cam
Committed by
Alexandre Julliard
Feb 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fusion/tests: Fix a test on some platforms.
parent
7ea4fcb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
asmcache.c
dlls/fusion/tests/asmcache.c
+11
-6
No files found.
dlls/fusion/tests/asmcache.c
View file @
b76007d8
...
@@ -887,6 +887,8 @@ static void test_InstallAssembly(void)
...
@@ -887,6 +887,8 @@ static void test_InstallAssembly(void)
HRESULT
hr
;
HRESULT
hr
;
ULONG
disp
;
ULONG
disp
;
DWORD
attr
;
DWORD
attr
;
char
dllpath
[
MAX_PATH
];
UINT
size
;
static
const
WCHAR
empty
[]
=
{
0
};
static
const
WCHAR
empty
[]
=
{
0
};
static
const
WCHAR
noext
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
noext
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
0
};
...
@@ -940,8 +942,10 @@ static void test_InstallAssembly(void)
...
@@ -940,8 +942,10 @@ static void test_InstallAssembly(void)
hr
=
IAssemblyCache_InstallAssembly
(
cache
,
0
,
winedll
,
NULL
);
hr
=
IAssemblyCache_InstallAssembly
(
cache
,
0
,
winedll
,
NULL
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
attr
=
GetFileAttributes
(
"C:
\\
windows
\\
assembly
\\
GAC_MSIL
\\
wine
\\
"
size
=
GetWindowsDirectoryA
(
dllpath
,
MAX_PATH
);
"1.0.0.0__2d03617b1c31e2f5/wine.dll"
);
strcat
(
dllpath
,
"
\\
assembly
\\
GAC_MSIL
\\
wine
\\\\
1.0.0.0__2d03617b1c31e2f5
\\
wine.dll"
);
attr
=
GetFileAttributes
(
dllpath
);
ok
(
attr
!=
INVALID_FILE_ATTRIBUTES
,
"Expected assembly to exist
\n
"
);
ok
(
attr
!=
INVALID_FILE_ATTRIBUTES
,
"Expected assembly to exist
\n
"
);
/* uninstall the assembly from the GAC */
/* uninstall the assembly from the GAC */
...
@@ -955,10 +959,11 @@ static void test_InstallAssembly(void)
...
@@ -955,10 +959,11 @@ static void test_InstallAssembly(void)
}
}
/* FIXME: remove once UninstallAssembly is implemented */
/* FIXME: remove once UninstallAssembly is implemented */
DeleteFileA
(
"C:
\\
windows
\\
assembly
\\
GAC_MSIL
\\
wine
\\
"
DeleteFileA
(
dllpath
);
"1.0.0.0__2d03617b1c31e2f5
\\
wine.dll"
);
dllpath
[
size
+
sizeof
(
"
\\
assembly
\\
GAC_MSIL
\\
wine
\\
1.0.0.0__2d03617b1c31e2f5"
)]
=
'\0'
;
RemoveDirectoryA
(
"C:
\\
windows
\\
assembly
\\
GAC_MSIL
\\
wine
\\
1.0.0.0__2d03617b1c31e2f5"
);
RemoveDirectoryA
(
dllpath
);
RemoveDirectoryA
(
"C:
\\
windows
\\
assembly
\\
GAC_MSIL
\\
wine"
);
dllpath
[
size
+
sizeof
(
"
\\
assembly
\\
GAC_MSIL
\\
wine"
)]
=
'\0'
;
RemoveDirectoryA
(
dllpath
);
DeleteFileA
(
"test.dll"
);
DeleteFileA
(
"test.dll"
);
DeleteFileA
(
"wine.dll"
);
DeleteFileA
(
"wine.dll"
);
...
...
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