Francois Gouget
2e6ae16469
mstask/tests: Work around race conditions with the task scheduler process.
...
When a task is created the process scheduler locks and loads it. This
can cause ITaskScheduler_Delete() to fail with a sharing violation if
it is called at the wrong time. Just retry a bit later when that
happens.
This fixes failures mostly in Wine but also in Windows 10 from time
to time in both task and task_scheduler.
Signed-off-by: Francois Gouget <fgouget@icodeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-21 08:57:00 +02:00
Sven Baars
d681deb3e5
mstask/tests: Wait a bit longer for tasks to start and terminate.
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-27 19:33:22 +01:00
Sven Baars
80b572e8b2
mstask/tests: Fix some memory leaks (Valgrind).
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-14 15:32:23 +01:00
Dmitry Timoshkov
14ff4bfefe
mstask/tests: Add some tests for workitem data.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-13 22:13:27 +02:00
Dmitry Timoshkov
74cc9b6741
mstask/tests: Add more tests for IEnumWorkItems interface.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 12:01:20 +02:00
Dmitry Timoshkov
5a9ed96aec
mstask: Implement ITask::GetNextRunTime() for WEEKLY trigger type.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-22 10:24:59 +02:00
Dmitry Timoshkov
2a56402c56
mstask: Add support for event triggers to ITask::GetNextRunTime().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-22 10:24:57 +02:00
Dmitry Timoshkov
e14e6bdeed
mstask: Handle disabled tasks in ITask::GetNextRunTime().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-22 10:24:52 +02:00
Dmitry Timoshkov
5443f0ee2b
mstask: Implement ITask::GetNextRunTime() for DAILY trigger type.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-21 16:22:18 +02:00
Dmitry Timoshkov
ac322334fa
mstask: Implement ITask::GetNextRunTime() for ONCE trigger type.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-21 16:22:12 +02:00
Dmitry Timoshkov
3b1e5c81f4
mstask: Move trigger management to the ITask implementation.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-14 12:11:48 +02:00
Dmitry Timoshkov
6dd096c3d1
mstask/tests: Add another set of tests for trigger management.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-14 12:11:48 +02:00
Dmitry Timoshkov
999922f7f3
mstask: ITaskTrigger::GetTrigger() should fail on NULL input.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-14 12:11:48 +02:00
Dmitry Timoshkov
fa4c707466
mstask: ITaskTrigger::SetTrigger() should fail on NULL input.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-14 12:11:48 +02:00
Dmitry Timoshkov
340bf9b513
mstask/tests: Make task trigger tests independent.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-14 12:11:48 +02:00
Dmitry Timoshkov
bad78747f6
mstask: Implement ITask::SetFlags().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-14 12:11:48 +02:00
Dmitry Timoshkov
0ec4e9d216
mstask/tests: Make task tests independent.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-14 12:11:48 +02:00
Dmitry Timoshkov
3310cd5385
mstask/tests: Add some tests for ITask::Run().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-11 17:20:41 +02:00
Dmitry Timoshkov
4bd663629d
mstask: Implement ITaskScheduler::Delete().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-11 17:20:41 +02:00
Dmitry Timoshkov
8d7d858d2b
mstask: Improve ITask::GetNextRunTime() stub.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-26 11:56:13 +02:00
Dmitry Timoshkov
c65df521a4
mstask/tests: Add more tests for ITaskScheduler::AddWorkItem().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:51:21 +02:00
Dmitry Timoshkov
f429c8188b
mstask: Implement ITaskScheduler::AddWorkItem().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:51:13 +02:00
Dmitry Timoshkov
ce0d9956f5
mstask: Implement IPersistFile::GetCurFile().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:49:57 +02:00
Dmitry Timoshkov
caafc3c637
mstask/tests: Also test the ITask::GetStatus() return value.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:49:52 +02:00
Dmitry Timoshkov
fffed17f80
mstask/tests: Add some tests for trigger management.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-24 10:33:47 +02:00
Dmitry Timoshkov
be8a21f136
mstask: Implement better stub for ITask::GetMostRecentRunTime().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:09:19 +02:00
Dmitry Timoshkov
23be14b1af
mstask: Implement better stub for ITask::GetExitCode().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:09:13 +02:00
Dmitry Timoshkov
2e04dd1c4a
mstask: Implement ITask::GetPriority().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:09:05 +02:00
Dmitry Timoshkov
d08a101a28
mstask: Implement ITask::GetIdleWait().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:09:01 +02:00
Dmitry Timoshkov
9d113d353b
mstask: ITask::GetErrorRetryInterval() is not implemented.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:08:52 +02:00
Dmitry Timoshkov
a933e2e040
mstask: ITask::GetErrorRetryCount() is not implemented.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:08:48 +02:00
Dmitry Timoshkov
5907782d59
mstask: Implement ITask::GetStatus().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:08:36 +02:00
Dmitry Timoshkov
cbe3300b1e
mstask: Implement IPersistFile::GetClassID().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 14:08:26 +02:00
Dmitry Timoshkov
d42e42e3f1
mstask/tests: Add some tests for task file storage.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 16:52:04 +02:00
Dmitry Timoshkov
a6866be904
mstask: Improve stubs for ITask::GetTaskFlags and ITask::GetFlags.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 16:52:04 +02:00
Hans Leidekker
64c1353925
mstask/tests: Skip ITaskScheduler::SetTargetComputer tests if the user doesn't have admin rights.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-19 12:13:49 +01:00
Nikolay Sivov
7aa2e9a9d0
mstask: Added IEnumWorkItems stub.
2015-03-20 16:23:04 +09:00
Michael Stefaniuc
7c60a31c19
mstask/tests: Remove an unused assignment (PVS-Studio).
2015-01-16 16:53:18 +01:00
Frédéric Delanoy
2e5cb7aac8
Assorted spelling/grammar fixes.
2014-04-30 18:34:20 +02:00
Alexandre Julliard
99ef0d6ff0
makefiles: Get rid of the MAKE_TEST_RULES variable.
2014-01-02 12:13:16 +01:00
Detlef Riekenberg
0c8dc0090b
mstask/tests: Add tests for SetTargetComputer.
2012-11-08 15:37:49 +01:00
Detlef Riekenberg
48ddbde746
mstask/tests: Add tests for GetTargetComputer.
2012-11-06 16:02:44 +01:00
Michael Stefaniuc
f70181113f
mstask: Actually run a test and fix the expected behaviour.
2012-05-16 18:30:23 +02:00
Austin English
340a4c21ce
mstask/tests: Make sure return values are used (LLVM/Clang).
2011-02-08 14:45:54 -06:00
Alexandre Julliard
81b8ee863e
makefiles: Add a standard header for all makefiles to replace the common variable initializations.
2010-09-19 12:36:48 +02:00
Alexandre Julliard
b86d515ed6
dlls: Remove explicit imports of kernel32 and ntdll.
2010-07-21 17:38:36 +02:00
Alexandre Julliard
bef5645eb1
makefiles: Remove the no longer needed explicit separators for dependencies.
2010-03-16 13:28:19 +01:00
Alexandre Julliard
6164ce2d82
makefiles: Use the standard C_SRCS variable as the list of test files.
...
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Alexandre Julliard
f5c35b14f6
mstask/tests: Add some error codes for Win2k.
2010-02-05 11:35:38 +01:00
Detlef Riekenberg
dc28680847
mstask/tests: Skip some tests when the service is not running.
2009-12-22 15:39:49 +01:00