Hans Leidekker : fusion/tests: Add another test for IAssemblyCache:: QueryAssemblyInfo.
Alexandre Julliard
julliard at winehq.org
Fri Mar 30 11:27:05 CDT 2012
Module: wine
Branch: master
Commit: aa53a8f005645234a5bfa9d7a287a3480ddb62e3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=aa53a8f005645234a5bfa9d7a287a3480ddb62e3
Author: Hans Leidekker <hans at codeweavers.com>
Date: Fri Mar 30 10:21:42 2012 +0200
fusion/tests: Add another test for IAssemblyCache::QueryAssemblyInfo.
---
dlls/fusion/tests/asmcache.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/dlls/fusion/tests/asmcache.c b/dlls/fusion/tests/asmcache.c
index 46c1db9..3910488 100644
--- a/dlls/fusion/tests/asmcache.c
+++ b/dlls/fusion/tests/asmcache.c
@@ -1485,6 +1485,21 @@ static void test_QueryAssemblyInfo(void)
ok(info.cchBuf == lstrlenW(asmpath) + 1,
"Expected %d, got %d\n", lstrlenW(asmpath) + 1, info.cchBuf);
+ /* no flags, display name is "wine, Version=1.0.0.0" */
+ INIT_ASM_INFO();
+ info.pszCurrentAssemblyPathBuf = NULL;
+ info.cchBuf = 0;
+ lstrcpyW(name, wine);
+ lstrcatW(name, commasep);
+ lstrcatW(name, ver);
+ hr = IAssemblyCache_QueryAssemblyInfo(cache, 0, name, &info);
+ ok(hr == HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER),
+ "Expected HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), got %08x\n", hr);
+ ok(info.cbAssemblyInfo == sizeof(ASSEMBLY_INFO),
+ "Expected sizeof(ASSEMBLY_INFO), got %d\n", info.cbAssemblyInfo);
+ ok(info.dwAssemblyFlags == ASSEMBLYINFO_FLAG_INSTALLED,
+ "Expected ASSEMBLYINFO_FLAG_INSTALLED, got %08x\n", info.dwAssemblyFlags);
+
/* uninstall the assembly from the GAC */
disp = 0xf00dbad;
hr = IAssemblyCache_UninstallAssembly(cache, 0, wine, NULL, &disp);
More information about the wine-cvs
mailing list