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
75e043ee
Commit
75e043ee
authored
Aug 18, 2008
by
Roy Shea
Committed by
Alexandre Julliard
Aug 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Activate conformance test.
parent
dd590822
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
task_scheduler.c
dlls/mstask/tests/task_scheduler.c
+29
-0
No files found.
dlls/mstask/tests/task_scheduler.c
View file @
75e043ee
...
...
@@ -20,6 +20,8 @@
#define COBJMACROS
#include "corerror.h"
#include "initguid.h"
#include "mstask.h"
#include "wine/test.h"
...
...
@@ -74,9 +76,36 @@ static void test_NewWorkItem(void)
return
;
}
static
void
test_Activate
(
void
)
{
HRESULT
hres
;
ITask
*
task
=
NULL
;
const
WCHAR
not_task_name
[]
=
{
'N'
,
'o'
,
'S'
,
'u'
,
'c'
,
'h'
,
'T'
,
'a'
,
's'
,
'k'
,
0
};
/* Create TaskScheduler */
hres
=
CoCreateInstance
(
&
CLSID_CTaskScheduler
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_ITaskScheduler
,
(
void
**
)
&
test_task_scheduler
);
ok
(
hres
==
S_OK
,
"CTaskScheduler CoCreateInstance failed: %08x
\n
"
,
hres
);
if
(
hres
!=
S_OK
)
{
skip
(
"Failed to create task scheduler. Skipping tests.
\n
"
);
return
;
}
/* Attempt to Activate a non-existant task */
hres
=
ITaskScheduler_Activate
(
test_task_scheduler
,
not_task_name
,
&
IID_ITask
,
(
IUnknown
**
)
&
task
);
todo_wine
ok
(
hres
==
COR_E_FILENOTFOUND
,
"Expected COR_E_FILENOTFOUND: %08x
\n
"
,
hres
);
ITaskScheduler_Release
(
test_task_scheduler
);
return
;
}
START_TEST
(
task_scheduler
)
{
CoInitialize
(
NULL
);
test_NewWorkItem
();
test_Activate
();
CoUninitialize
();
}
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