mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
fusion/tests: Add a test for IAssemblyCache::QueryAssemblyInfo.
This commit is contained in:
parent
e9fa059976
commit
e0425c6348
1 changed files with 11 additions and 1 deletions
|
@ -1306,7 +1306,7 @@ static void test_QueryAssemblyInfo(void)
|
||||||
ok(info.cchBuf == lstrlenW(asmpath) + 1,
|
ok(info.cchBuf == lstrlenW(asmpath) + 1,
|
||||||
"Expected %d, got %d\n", lstrlenW(asmpath) + 1, info.cchBuf);
|
"Expected %d, got %d\n", lstrlenW(asmpath) + 1, info.cchBuf);
|
||||||
|
|
||||||
/* short buffer */
|
/* short buffer, QUERYASMINFO_FLAG_VALIDATE */
|
||||||
memset(&info, 0, sizeof(info));
|
memset(&info, 0, sizeof(info));
|
||||||
lstrcpyW(name, wine);
|
lstrcpyW(name, wine);
|
||||||
lstrcatW(name, commasep);
|
lstrcatW(name, commasep);
|
||||||
|
@ -1316,6 +1316,16 @@ static void test_QueryAssemblyInfo(void)
|
||||||
ok(hr == HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), "got %08x\n", hr);
|
ok(hr == HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), "got %08x\n", hr);
|
||||||
ok(info.dwAssemblyFlags == ASSEMBLYINFO_FLAG_INSTALLED, "got %08x\n", info.dwAssemblyFlags);
|
ok(info.dwAssemblyFlags == ASSEMBLYINFO_FLAG_INSTALLED, "got %08x\n", info.dwAssemblyFlags);
|
||||||
|
|
||||||
|
/* short buffer, QUERYASMINFO_FLAG_GETSIZE */
|
||||||
|
memset(&info, 0, sizeof(info));
|
||||||
|
lstrcpyW(name, wine);
|
||||||
|
lstrcatW(name, commasep);
|
||||||
|
lstrcatW(name, otherver);
|
||||||
|
hr = IAssemblyCache_QueryAssemblyInfo(cache, QUERYASMINFO_FLAG_GETSIZE,
|
||||||
|
name, &info);
|
||||||
|
ok(hr == HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), "got %08x\n", hr);
|
||||||
|
ok(info.dwAssemblyFlags == ASSEMBLYINFO_FLAG_INSTALLED, "got %08x\n", info.dwAssemblyFlags);
|
||||||
|
|
||||||
/* display name is "wine, Version=1.0.0.00000" */
|
/* display name is "wine, Version=1.0.0.00000" */
|
||||||
INIT_ASM_INFO();
|
INIT_ASM_INFO();
|
||||||
hr = IAssemblyCache_QueryAssemblyInfo(cache, QUERYASMINFO_FLAG_GETSIZE,
|
hr = IAssemblyCache_QueryAssemblyInfo(cache, QUERYASMINFO_FLAG_GETSIZE,
|
||||||
|
|
Loading…
Reference in a new issue