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
ee2c7dc8
Commit
ee2c7dc8
authored
Mar 25, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
Mar 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schedsvc/tests: Use a winetest context in the rpcapi loops.
parent
3e975e93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
rpcapi.c
dlls/schedsvc/tests/rpcapi.c
+7
-3
No files found.
dlls/schedsvc/tests/rpcapi.c
View file @
ee2c7dc8
...
...
@@ -155,6 +155,7 @@ START_TEST(rpcapi)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
create_new_task
);
i
++
)
{
winetest_push_context
(
"%lu"
,
i
);
path
=
NULL
;
info
=
NULL
;
hr
=
SchRpcRegisterTask
(
L"
\\
Wine
\\
Task1"
,
xml1
,
create_new_task
[
i
].
flags
,
NULL
,
...
...
@@ -168,6 +169,7 @@ START_TEST(rpcapi)
ok
(
!
info
,
"expected NULL, info %p
\n
"
,
info
);
MIDL_user_free
(
path
);
}
winetest_pop_context
();
}
path
=
NULL
;
...
...
@@ -195,11 +197,12 @@ START_TEST(rpcapi)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
open_existing_task
);
i
++
)
{
winetest_push_context
(
"%lu"
,
i
);
path
=
NULL
;
info
=
NULL
;
hr
=
SchRpcRegisterTask
(
L"Wine
\\
Folder1
\\
Task1"
,
xml1
,
open_existing_task
[
i
].
flags
,
NULL
,
TASK_LOGON_NONE
,
0
,
NULL
,
&
path
,
&
info
);
ok
(
hr
==
open_existing_task
[
i
].
hr
,
"
%lu: expected %#lx, got %#lx
\n
"
,
i
,
open_existing_task
[
i
].
hr
,
hr
);
ok
(
hr
==
open_existing_task
[
i
].
hr
,
"
expected %#lx, got %#lx
\n
"
,
open_existing_task
[
i
].
hr
,
hr
);
if
(
hr
==
S_OK
)
{
ok
(
!
lstrcmpW
(
path
,
L"
\\
Wine
\\
Folder1
\\
Task1"
)
/* win7 */
||
...
...
@@ -208,8 +211,9 @@ START_TEST(rpcapi)
MIDL_user_free
(
path
);
}
else
ok
(
!
path
,
"%lu: expected NULL, path %p
\n
"
,
i
,
path
);
ok
(
!
info
,
"%lu: expected NULL, info %p
\n
"
,
i
,
info
);
ok
(
!
path
,
"expected NULL, path %p
\n
"
,
path
);
ok
(
!
info
,
"expected NULL, info %p
\n
"
,
info
);
winetest_pop_context
();
}
path
=
NULL
;
...
...
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