Commit Graph

28 Commits

Author SHA1 Message Date
Francois Gouget ed2b42727f qmgr/tests: Fix the spelling of an ok() message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-25 22:51:35 +01:00
Aaron Hill 2148167f25 qmgr/tests: Test registering an IBackgroundCopyCallback2.
Signed-off-by: Aaron Hill <aa1ronham@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-27 22:18:25 +01:00
Aaron Hill 2538077463 qmgr/tests: Fix issues with handling of transient errors.
When a BITS job is being transferred, it may enter into the state
BG_JOB_STATE_TRANSIENT_ERROR (for example, if the hostname fails to
resolve). Currently, entering this state causes qmgr job tests to fail,
even though it may occur due to temporary network issues out of our
control.

If a job enters BG_JOB_STATE_TRANSIENT_ERROR before the timeout has
elapsed, attempt to resume the job using
IBackgroundCopyJob_Resume. If the job is still in
BG_JOB_STATE_TRANSIENT_ERROR, query BITS for detailed error
information, and print it out.

Additionally, ensure that we are able to transfer files on Windows 10
with a metered connection. By default, BITS will not attempt to transfer
a job on a metered connection, instead failing with
BG_JOB_STATE_TRANSIENT_ERROR. On newer versions of Windows, we can
use IBackgroundCopyJob5 to set the transfer policy, forcing the job to
run even on a metered connection. This allows qmgr job tests to pass on
the testbot Windows 10 VMs, which have metered connections enabled in
order to disable Windows Update.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50048
Signed-off-by: Aaron Hill <aa1ronham@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-27 22:18:09 +01:00
Michael Stefaniuc b0a64a8104 qmgr: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-12 10:39:57 +02:00
Hans Leidekker e82c5f65b0 qmgr/tests: Fix test failures on Windows XP.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-02 17:41:57 +01:00
Alistair Leslie-Hughes d11a6e6c04 qmgr/tests: Use standard wine_dbgstr_longlong.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-06 09:41:26 +02:00
Hans Leidekker c5a969904f qmgr/tests: Add tests. 2015-06-15 14:45:45 +09:00
Nikolay Sivov f2e9854483 qmgr: Implement Get/SetNotifyInterface(). 2013-11-28 11:19:00 +01:00
Nikolay Sivov 2245acf75a qmgr/tests: Do an early check to skip all tests. 2013-11-27 14:54:01 +01:00
Nikolay Sivov 76c3f0cffb qmgr: Implement Get/SetNotifyFlags(). 2013-11-27 14:53:02 +01:00
Nikolay Sivov cd777e5418 qmgr/tests: Remove skips around tests that don't fail. 2013-11-25 15:15:53 +01:00
André Hentschel c71998d742 qmgr/tests: Use a temporary path to avoid failures. 2010-12-23 13:47:22 +01:00
Paul Vriens 936b10b473 qmgr/tests: Fix some tests on systems with BITS 1.5 and lower. 2009-03-06 15:39:24 +01:00
Dan Hipschman cacd1c448e qmgr/tests: Fix minor potential memory leaks. 2008-04-16 14:08:35 +02:00
Alexandre Julliard 711275e2fc qmgr: Avoid %ll printf formats. 2008-03-26 18:00:37 +01:00
Francois Gouget 304b415284 Assorted spelling fixes. 2008-03-19 11:21:27 +01:00
Joris Huizer b6a1529171 qmgr/tests: Test the correct handle. 2008-03-17 11:41:12 +01:00
Dan Hipschman 136a4ebbb2 qmgr: Implement IBackgroundCopyJob_AddFileSet. 2008-03-15 11:06:18 +01:00
Dan Hipschman 8199e3dfa2 qmgr: Transfer files given by URL (including HTTP, etc). 2008-03-14 12:11:19 +01:00
Dan Hipschman 2f2b3303d7 qmgr: Transfer files given by URL (including HTTP, etc). 2008-03-14 12:06:25 +01:00
Dan Hipschman 1c93ee77e5 qmgr: Implement BackgroundCopyJob_Complete. 2008-03-14 11:53:22 +01:00
Dan Hipschman eb70436993 qmgr: Implement IBackgroundCopyJob_Resume. 2008-03-05 11:21:28 +01:00
Roy Shea dc484a9b93 qmgr: Implement IBackgroundCopyJob_GetProgress. 2008-03-04 11:54:21 +01:00
Roy Shea 27421285b9 qmgr: Implement IBackgroundCopyJob_EnumFiles. 2008-02-28 10:59:43 +01:00
Roy Shea be8bac15fd qmgr: Implement IBackgroundCopyJob_AddFile. 2008-02-27 14:52:26 +01:00
Roy Shea 28e7c3b9a9 qmgr: Implement IBackgroundCopyJob_GetDisplayName with test. 2008-02-26 11:33:48 +01:00
Roy Shea 3f126b4a60 qmgr: Implement IBackgroundCopyJob_GetType with test. 2008-02-26 11:33:26 +01:00
Roy Shea 575b1bfcc7 qmgr: Implement IBackgroundCopyJob_GetId with test. 2008-02-25 20:11:38 +01:00