Commit Graph

38 Commits

Author SHA1 Message Date
Eric Pouech c601c7019b mstask/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-01 10:38:29 +01:00
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 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 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 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 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
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
Alexandre Julliard ef5864fcc0 mstask/tests: Use the global wine_dbgstr_w instead of a local variant. 2009-08-19 13:36:50 +02:00
Francois Gouget 419ecb35e1 mstask/tests: Replace realloc() with HeapReAlloc(). 2009-05-19 12:01:04 +02:00
Alexandre Julliard 0e894c3444 mstask/tests: Fix test failures on XP. 2008-09-17 16:23:08 +02:00
James Hawkins a58945de84 mstask: Fix a few failing tests in win2k. 2008-09-11 11:49:52 +02:00
Alexandre Julliard 67a25b57fb mstask/tests: Use case-insensitive compare for file names. 2008-09-11 11:49:27 +02:00
Francois Gouget 4823b2c7bf Assorted spelling fixes. 2008-09-02 13:58:21 +02:00
Paul Vriens 6cd32ffc07 mstask/tests: Skip tests for security services if they are not implemented. 2008-08-27 13:21:23 +02:00
Roy Shea 7c5f411e7a mstask: Implemented CreateTrigger. 2008-08-26 12:07:42 +02:00
Roy Shea f208025228 mstask: Implemented partial stub for (Set|Get)AccountInformation. 2008-08-22 11:32:08 +02:00
Roy Shea a597d9eaed mstask: Implemented (Set|Get)MaxRunTime. 2008-08-22 11:32:08 +02:00
Roy Shea 37708b1e5c mstask: Implemented (Set|Get)Comment. 2008-08-22 11:32:08 +02:00
Roy Shea 2f95e5123b mstask: Implement (Set|Get)Parameters. 2008-08-22 11:32:08 +02:00
Roy Shea ca73655124 mstask: Implemented (Set|Get)ApplicationName. 2008-08-21 13:42:08 +02:00
Roy Shea e8d22f02df mstask/tests: Basic conformance test for (Set|Get)AccountInformation. 2008-08-21 11:39:22 +02:00
Roy Shea 714c6d3a66 mstask/tests: Conformance test for (Set|Get)MaxRunTime. 2008-08-21 11:39:15 +02:00
Roy Shea 7cca21426a mstask/tests: Conformance test for (Set|Get)Comment. 2008-08-21 11:39:09 +02:00
Roy Shea cd8ac27304 mstask/tests: Conformance test for (Set|Get)Parameters. 2008-08-21 11:39:04 +02:00
Roy Shea 5b3b540d8b mstask/test: Conformance test for CreateTrigger. 2008-08-20 12:36:06 +02:00
Roy Shea 32354497f7 mstask/test: Conformance test for (Set|Get)ApplicationName. 2008-08-20 12:35:45 +02:00