Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
eb49e435
Commit
eb49e435
authored
Mar 06, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase/tests: Add test of assembly path of manifest embedded in exe module.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2d764e90
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
0 deletions
+52
-0
Makefile.in
dlls/kernelbase/tests/Makefile.in
+3
-0
path.c
dlls/kernelbase/tests/path.c
+21
-0
rsrc.rc
dlls/kernelbase/tests/rsrc.rc
+22
-0
test.manifest
dlls/kernelbase/tests/test.manifest
+6
-0
No files found.
dlls/kernelbase/tests/Makefile.in
View file @
eb49e435
...
...
@@ -3,3 +3,6 @@ TESTDLL = kernelbase.dll
C_SRCS
=
\
path.c
\
sync.c
RC_SRCS
=
\
rsrc.rc
dlls/kernelbase/tests/path.c
View file @
eb49e435
...
...
@@ -2337,6 +2337,26 @@ static void test_PathIsUNCEx(void)
}
}
static
void
test_actctx
(
void
)
{
ACTCTX_SECTION_KEYED_DATA
data
=
{
sizeof
(
data
)
};
WCHAR
exe_path
[
MAX_PATH
];
char
buf
[
1024
];
ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION
*
info
=
(
void
*
)
buf
;
SIZE_T
size
;
BOOL
b
;
b
=
FindActCtxSectionStringW
(
FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX
,
NULL
,
ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION
,
L"testdll.dll"
,
&
data
);
ok
(
b
,
"FindActCtxSectionString failed: %u
\n
"
,
GetLastError
());
b
=
QueryActCtxW
(
0
,
data
.
hActCtx
,
&
data
.
ulAssemblyRosterIndex
,
AssemblyDetailedInformationInActivationContext
,
buf
,
sizeof
(
buf
),
&
size
);
ok
(
b
,
"QueryActCtx failed: %u
\n
"
,
GetLastError
());
GetModuleFileNameW
(
NULL
,
exe_path
,
ARRAY_SIZE
(
exe_path
));
ok
(
!
lstrcmpW
(
info
->
lpAssemblyManifestPath
,
exe_path
),
"lpAssemblyManifestPath = %s expected %s
\n
"
,
debugstr_w
(
info
->
lpAssemblyManifestPath
),
debugstr_w
(
exe_path
));
ok
(
!
info
->
lpAssemblyDirectoryName
,
"lpAssemblyDirectoryName = %s
\n
"
,
wine_dbgstr_w
(
info
->
lpAssemblyDirectoryName
));
}
START_TEST
(
path
)
{
HMODULE
hmod
=
LoadLibraryA
(
"kernelbase.dll"
);
...
...
@@ -2386,4 +2406,5 @@ START_TEST(path)
test_PathCchStripPrefix
();
test_PathCchStripToRoot
();
test_PathIsUNCEx
();
test_actctx
();
}
dlls/kernelbase/tests/rsrc.rc
0 → 100644
View file @
eb49e435
/*
* Copyright 2020 Jacek Caban
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "winuser.h"
/* @makedep: test.manifest */
1 RT_MANIFEST test.manifest
dlls/kernelbase/tests/test.manifest
0 → 100644
View file @
eb49e435
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<assembly
xmlns=
"urn:schemas-microsoft-com:asm.v1"
manifestVersion=
"1.0"
xmlns:asmv3=
"urn:schemas-microsoft-com:asm.v3"
>
<assemblyIdentity
processorArchitecture=
"*"
type=
"win32"
name=
"Firefly"
version=
"16.0.0.0"
/>
<description>
Wine Test
</description>
<file
name=
"testdll.dll"
/>
</assembly>
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