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
7acd3aa4
Commit
7acd3aa4
authored
Dec 07, 2022
by
Sven Baars
Committed by
Alexandre Julliard
Dec 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd/tests: Fix a test failure on w1064v1507.
parent
0c3653bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
scheduler.c
dlls/taskschd/tests/scheduler.c
+13
-6
No files found.
dlls/taskschd/tests/scheduler.c
View file @
7acd3aa4
...
...
@@ -775,12 +775,23 @@ static void test_GetTask(void)
hr
=
ITaskFolder_CreateFolder
(
root
,
Wine
,
v_null
,
&
folder
);
ok
(
hr
==
S_OK
,
"CreateFolder error %#lx
\n
"
,
hr
);
MultiByteToWideChar
(
CP_ACP
,
0
,
xml1
,
-
1
,
xmlW
,
ARRAY_SIZE
(
xmlW
));
hr
=
ITaskFolder_RegisterTask
(
root
,
Wine
,
xmlW
,
TASK_CREATE
,
v_null
,
v_null
,
TASK_LOGON_NONE
,
v_null
,
NULL
);
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_ACCESS_DENIED
)
||
broken
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_ALREADY_EXISTS
))
/* Vista */
,
"expected ERROR_ACCESS_DENIED, got %#lx
\n
"
,
hr
);
/* Delete the folder and recreate it to prevent a crash on w1064v1507 */
hr
=
ITaskFolder_DeleteFolder
(
root
,
Wine
,
0
);
ok
(
hr
==
S_OK
,
"DeleteTask error %#lx
\n
"
,
hr
);
hr
=
ITaskFolder_CreateFolder
(
root
,
Wine
,
v_null
,
&
folder
);
ok
(
hr
==
S_OK
,
"CreateFolder error %#lx
\n
"
,
hr
);
hr
=
ITaskFolder_GetTask
(
root
,
Wine
,
&
task1
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_PATH_NOT_FOUND
)
||
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
)
/* win7 */
,
"expected ERROR_PATH_NOT_FOUND, got %#lx
\n
"
,
hr
);
MultiByteToWideChar
(
CP_ACP
,
0
,
xml1
,
-
1
,
xmlW
,
ARRAY_SIZE
(
xmlW
));
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
create_new_task
);
i
++
)
{
hr
=
ITaskFolder_RegisterTask
(
root
,
Wine_Task1
,
xmlW
,
create_new_task
[
i
].
flags
,
v_null
,
v_null
,
TASK_LOGON_NONE
,
v_null
,
&
task1
);
...
...
@@ -799,10 +810,6 @@ static void test_GetTask(void)
hr
=
ITaskFolder_RegisterTask
(
root
,
Wine
,
xmlW
,
TASK_VALIDATE_ONLY
,
v_null
,
v_null
,
TASK_LOGON_NONE
,
v_null
,
NULL
);
ok
(
hr
==
S_OK
,
"RegisterTask error %#lx
\n
"
,
hr
);
hr
=
ITaskFolder_RegisterTask
(
root
,
Wine
,
xmlW
,
TASK_CREATE
,
v_null
,
v_null
,
TASK_LOGON_NONE
,
v_null
,
NULL
);
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_ACCESS_DENIED
)
||
broken
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_ALREADY_EXISTS
))
/* Vista */
,
"expected ERROR_ACCESS_DENIED, got %#lx
\n
"
,
hr
);
hr
=
ITaskFolder_RegisterTask
(
root
,
Wine_Task1
,
xmlW
,
TASK_CREATE
,
v_null
,
v_null
,
TASK_LOGON_NONE
,
v_null
,
NULL
);
ok
(
hr
==
S_OK
,
"RegisterTask error %#lx
\n
"
,
hr
);
...
...
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