Commit Graph

52 Commits

Author SHA1 Message Date
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
Francois Gouget a909baeb4e tests: Report all errors when failing to wait for a child process.
Report the line number where the test failed to wait for the child so
one can identify which child process did not behave as expected.
Also wait_child_process() is meant for the general case so report
all non-crash error cases as test failures so they are accounted for.
Omit the "winetest_" prefix to match the other Wine test functions and
so the underlying winetest_wait_child_process() function can be wrapped
with the usual line-capturing macros.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48651
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-17 10:51:44 +01: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
André Hentschel 8ae3c7ae27 qmgr/tests: Remove unused macro. 2014-12-09 19:36:00 +01:00
André Hentschel 84a2a963dd qmgr/tests: Remove unused code (Clang). 2014-12-02 10:48:37 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Nikolay Sivov 202e71769e qmgr/tests: Fixed some test failures on older windows versions. 2013-12-02 10:48:37 +01: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
Nikolay Sivov fcda3c7ad8 qmgr: Use proper method macros. 2012-08-24 11:32:53 +02:00
Frédéric Delanoy 760faf01a9 tests: Assorted spelling fixes. 2011-08-04 18:27:37 +02:00
Austin English 69fd8d5271 qmgr/tests: Make sure return values are used (LLVM/Clang). 2011-02-08 14:45:54 -06:00
André Hentschel c71998d742 qmgr/tests: Use a temporary path to avoid failures. 2010-12-23 13:47:22 +01: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
Detlef Riekenberg c9b0d7f15e qmgr/tests: Detect when the service is disabled. 2010-08-17 14:18:45 +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
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 275f00f54d qmgr: Only have one BackgroundCopyManager per system. 2008-03-07 11:15:39 +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 a0fd05f09e qmgr: Implement Skip and Reset for IEnumBackgroundCopyJobs. 2008-03-04 11:54:21 +01:00
Dan Hipschman 1317e3115a qmgr: Implement IEnumBackgroundCopyJobs_Next. 2008-03-04 11:54:21 +01:00
Roy Shea 8dfba77c8c qmgr: Implement IEnumBackgroundCopyJobs_GetCount. 2008-03-04 11:54:21 +01:00
Roy Shea e6cbde105f qmgr: Implement IBackgroundCopyFile_GetProgress. 2008-02-29 10:56:10 +01:00
Roy Shea 4866d1bde6 qmgr: Implement GetLocalName and GetRemoteName for IBackgroundCopyFile. 2008-02-29 10:55:57 +01:00
Roy Shea 5c4776c2a3 qmgr: Implement Skip and Reset for IEnumBackgroundCopyFiles. 2008-02-29 10:55:37 +01:00
Dan Hipschman 980e00c63b qmgr: Implement IEnumBackgroundCopyFiles_Next. 2008-02-29 10:55:17 +01:00
Roy Shea 84a5eca28e qmgr: Implement IEnumBackgroundCopyFiles_GetCount. 2008-02-28 11:01:11 +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 9f63253d00 qmgr: Implement IBackgroundCopyManager_EnumJobs with test. 2008-02-26 11:35:12 +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