Module: wine Branch: master Commit: a14c6b737a43c2220cebeb9e2abfeb2be969d220 URL: https://gitlab.winehq.org/wine/wine/-/commit/a14c6b737a43c2220cebeb9e2abfeb2...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Tue Aug 22 09:35:44 2023 +0200
kernel32/tests: Add activation context test with empty assembly manifest.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com
---
dlls/kernel32/tests/actctx.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
diff --git a/dlls/kernel32/tests/actctx.c b/dlls/kernel32/tests/actctx.c index c6796a1ac64..770c3751a1c 100644 --- a/dlls/kernel32/tests/actctx.c +++ b/dlls/kernel32/tests/actctx.c @@ -542,6 +542,8 @@ static const char builtin_dll_manifest[] = " </dependency>" "</assembly>";
+static const char empty_assembly_manifest[] = +"<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" />";
DEFINE_GUID(VISTA_COMPAT_GUID, 0xe2011457, 0x1546, 0x43c5, 0xa5, 0xfe, 0x00, 0x8d, 0xee, 0xe3, 0xd3, 0xf0); DEFINE_GUID(WIN7_COMPAT_GUID, 0x35138b9a, 0x5d96, 0x4fbd, 0x8e, 0x2d, 0xa2, 0x44, 0x02, 0x25, 0xf9, 0x3a); @@ -2516,6 +2518,18 @@ static void test_actctx(void) ReleaseActCtx(handle); }
+ /* Empty <assembly/> element. */ + create_manifest_file("empty_assembly.manifest", empty_assembly_manifest, -1, NULL, NULL); + handle = test_create("empty_assembly.manifest"); + todo_wine + ok(handle != INVALID_HANDLE_VALUE, "Failed to create activation context.\n"); + DeleteFileA("empty_assembly.manifest"); + if (handle != INVALID_HANDLE_VALUE) + { + test_basic_info(handle, __LINE__); + ReleaseActCtx(handle); + } + test_wndclass_section(); test_dllredirect_section(); test_typelib_section();