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
7e50d67d
Commit
7e50d67d
authored
Oct 24, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fusion/tests: Remove a broken macro.
parent
47201091
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
fusion.c
dlls/fusion/tests/fusion.c
+6
-14
No files found.
dlls/fusion/tests/fusion.c
View file @
7e50d67d
...
...
@@ -30,14 +30,6 @@ static HRESULT (WINAPI *pLoadLibraryShim)(LPCWSTR szDllName, LPCWSTR szVersion,
static
HRESULT
(
WINAPI
*
pGetCORVersion
)(
LPWSTR
pbuffer
,
DWORD
cchBuffer
,
DWORD
*
dwLength
);
static
CHAR
string1
[
MAX_PATH
],
string2
[
MAX_PATH
];
#define ok_w2(format, szString1, szString2) \
\
WideCharToMultiByte(CP_ACP, 0, szString1, -1, string1, MAX_PATH, NULL, NULL); \
WideCharToMultiByte(CP_ACP, 0, szString2, -1, string2, MAX_PATH, NULL, NULL); \
ok(!lstrcmpA(string1, string2), format, string1, string2)
static
BOOL
init_functionpointers
(
void
)
{
HRESULT
hr
;
...
...
@@ -127,14 +119,14 @@ static void test_GetCachePath(void)
lstrcpyW
(
path
,
nochange
);
hr
=
pGetCachePath
(
ASM_CACHE_GAC
,
path
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
hr
);
ok
_w2
(
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
nochange
,
path
);
ok
(
!
lstrcmpW
(
nochange
,
path
),
"Expected %s, got %s
\n
"
,
wine_dbgstr_w
(
nochange
),
wine_dbgstr_w
(
path
)
);
/* get the cache path */
lstrcpyW
(
path
,
nochange
);
size
=
MAX_PATH
;
hr
=
pGetCachePath
(
ASM_CACHE_GAC
,
path
,
&
size
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
ok
_w2
(
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
cachepath
,
path
);
ok
(
!
lstrcmpW
(
cachepath
,
path
),
"Expected %s, got %s
\n
"
,
wine_dbgstr_w
(
cachepath
),
wine_dbgstr_w
(
path
)
);
/* pcchPath has no room for NULL terminator */
lstrcpyW
(
path
,
nochange
);
...
...
@@ -142,7 +134,7 @@ static void test_GetCachePath(void)
hr
=
pGetCachePath
(
ASM_CACHE_GAC
,
path
,
&
size
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
),
"Expected HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), got %08x
\n
"
,
hr
);
ok
_w2
(
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
nochange
,
path
);
ok
(
!
lstrcmpW
(
nochange
,
path
),
"Expected %s, got %s
\n
"
,
wine_dbgstr_w
(
nochange
),
wine_dbgstr_w
(
path
)
);
lstrcpyW
(
cachepath
,
windir
);
lstrcatW
(
cachepath
,
backslash
);
...
...
@@ -156,7 +148,7 @@ static void test_GetCachePath(void)
broken
(
hr
==
E_INVALIDARG
),
/* .NET 1.1 */
"Expected S_OK, got %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
ok
_w2
(
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
cachepath
,
path
);
ok
(
!
lstrcmpW
(
cachepath
,
path
),
"Expected %s, got %s
\n
"
,
wine_dbgstr_w
(
cachepath
),
wine_dbgstr_w
(
path
)
);
if
(
pGetCORVersion
)
{
...
...
@@ -191,7 +183,7 @@ static void test_GetCachePath(void)
size
=
MAX_PATH
;
hr
=
pGetCachePath
(
ASM_CACHE_ZAP
,
path
,
&
size
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
ok
_w2
(
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
cachepath
,
path
);
ok
(
!
lstrcmpW
(
cachepath
,
path
),
"Expected %s, got %s
\n
"
,
wine_dbgstr_w
(
cachepath
),
wine_dbgstr_w
(
path
)
);
}
/* two flags at once */
...
...
@@ -199,7 +191,7 @@ static void test_GetCachePath(void)
size
=
MAX_PATH
;
hr
=
pGetCachePath
(
ASM_CACHE_GAC
|
ASM_CACHE_ROOT
,
path
,
&
size
);
ok
(
hr
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
hr
);
ok
_w2
(
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
nochange
,
path
);
ok
(
!
lstrcmpW
(
nochange
,
path
),
"Expected %s, got %s
\n
"
,
wine_dbgstr_w
(
nochange
),
wine_dbgstr_w
(
path
)
);
}
START_TEST
(
fusion
)
...
...
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