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
0a20d468
Commit
0a20d468
authored
Feb 12, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix some test failures in older XP/Win2k3 versions.
parent
ee518b5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
actctx.c
dlls/kernel32/tests/actctx.c
+21
-2
No files found.
dlls/kernel32/tests/actctx.c
View file @
0a20d468
...
...
@@ -723,7 +723,8 @@ static HANDLE test_create(const char *file)
actctx
.
lpSource
=
path
;
handle
=
pCreateActCtxW
(
&
actctx
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
/* to be tested outside of this helper, including last error */
if
(
handle
==
INVALID_HANDLE_VALUE
)
return
handle
;
ok
(
actctx
.
cbSize
==
sizeof
(
actctx
),
"actctx.cbSize=%d
\n
"
,
actctx
.
cbSize
);
ok
(
actctx
.
dwFlags
==
0
,
"actctx.dwFlags=%d
\n
"
,
actctx
.
dwFlags
);
...
...
@@ -1556,6 +1557,8 @@ static void test_wndclass_section(void)
create_manifest_file
(
"main_wndcls.manifest"
,
manifest_wndcls_main
,
-
1
,
NULL
,
NULL
);
handle
=
test_create
(
"main_wndcls.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
DeleteFileA
(
"testdep1.manifest"
);
DeleteFileA
(
"testdep2.manifest"
);
DeleteFileA
(
"main_wndcls.manifest"
);
...
...
@@ -1618,6 +1621,8 @@ static void test_dllredirect_section(void)
create_manifest_file
(
"main_wndcls.manifest"
,
manifest_wndcls_main
,
-
1
,
NULL
,
NULL
);
handle
=
test_create
(
"main_wndcls.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
DeleteFileA
(
"testdep1.manifest"
);
DeleteFileA
(
"testdep2.manifest"
);
DeleteFileA
(
"main_wndcls.manifest"
);
...
...
@@ -1671,6 +1676,8 @@ static void test_typelib_section(void)
create_manifest_file
(
"main_wndcls.manifest"
,
manifest_wndcls_main
,
-
1
,
NULL
,
NULL
);
handle
=
test_create
(
"main_wndcls.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
DeleteFileA
(
"testdep1.manifest"
);
DeleteFileA
(
"testdep2.manifest"
);
DeleteFileA
(
"main_wndcls.manifest"
);
...
...
@@ -1744,7 +1751,7 @@ static void test_actctx(void)
/* test for whitespace handling in Eq ::= S? '=' S? */
create_manifest_file
(
"test1_1.manifest"
,
manifest1_1
,
-
1
,
NULL
,
NULL
);
handle
=
test_create
(
"test1_1.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"
got %p
\n
"
,
handle
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"
handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
()
);
DeleteFileA
(
"test1_1.manifest"
);
pReleaseActCtx
(
handle
);
...
...
@@ -1756,6 +1763,7 @@ static void test_actctx(void)
trace
(
"manifest1
\n
"
);
handle
=
test_create
(
"test1.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
DeleteFileA
(
"test1.manifest"
);
if
(
handle
!=
INVALID_HANDLE_VALUE
)
{
test_basic_info
(
handle
,
__LINE__
);
...
...
@@ -1781,6 +1789,7 @@ static void test_actctx(void)
trace
(
"manifest2 depmanifest1
\n
"
);
handle
=
test_create
(
"test2.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
DeleteFileA
(
"test2.manifest"
);
DeleteFileA
(
"testdep.manifest"
);
if
(
handle
!=
INVALID_HANDLE_VALUE
)
{
...
...
@@ -1799,6 +1808,7 @@ static void test_actctx(void)
trace
(
"manifest2 depmanifest2
\n
"
);
handle
=
test_create
(
"test2-2.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
DeleteFileA
(
"test2-2.manifest"
);
DeleteFileA
(
"testdep.manifest"
);
if
(
handle
!=
INVALID_HANDLE_VALUE
)
{
...
...
@@ -1827,6 +1837,7 @@ static void test_actctx(void)
}
handle
=
test_create
(
"test2-3.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
DeleteFileA
(
"test2-3.manifest"
);
DeleteFileA
(
"testdep.manifest"
);
if
(
handle
!=
INVALID_HANDLE_VALUE
)
{
...
...
@@ -1857,6 +1868,10 @@ static void test_actctx(void)
}
handle
=
test_create
(
"test3.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
||
broken
(
handle
==
INVALID_HANDLE_VALUE
)
/* XP pre-SP2, win2k3 w/o SP */
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
if
(
handle
==
INVALID_HANDLE_VALUE
)
win_skip
(
"Some activation context features not supported, skipping a test (possibly old XP/Win2k3 system
\n
"
);
DeleteFileA
(
"test3.manifest"
);
if
(
handle
!=
INVALID_HANDLE_VALUE
)
{
static
const
WCHAR
nameW
[]
=
{
't'
,
'e'
,
's'
,
't'
,
's'
,
'u'
,
'r'
,
'r'
,
'o'
,
'g'
,
'a'
,
't'
,
'e'
,
0
};
...
...
@@ -1909,6 +1924,7 @@ static void test_actctx(void)
}
handle
=
test_create
(
"test4.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
DeleteFileA
(
"test4.manifest"
);
DeleteFileA
(
"testdep.manifest"
);
if
(
handle
!=
INVALID_HANDLE_VALUE
)
{
...
...
@@ -1929,6 +1945,7 @@ static void test_actctx(void)
return
;
}
handle
=
test_create
(
"..
\\
test1.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
DeleteFileA
(
"..
\\
test1.manifest"
);
if
(
handle
!=
INVALID_HANDLE_VALUE
)
{
test_basic_info
(
handle
,
__LINE__
);
...
...
@@ -1949,6 +1966,7 @@ static void test_actctx(void)
}
handle
=
test_create
(
"test1.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
DeleteFileA
(
"test1.manifest"
);
if
(
handle
!=
INVALID_HANDLE_VALUE
)
{
test_basic_info
(
handle
,
__LINE__
);
...
...
@@ -1964,6 +1982,7 @@ static void test_actctx(void)
}
handle
=
test_create
(
"test1.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
DeleteFileA
(
"test1.manifest"
);
if
(
handle
!=
INVALID_HANDLE_VALUE
)
{
test_basic_info
(
handle
,
__LINE__
);
...
...
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