Commit Graph

161 Commits

Author SHA1 Message Date
Nikolay Sivov efe4d24fea ole32/tests: Fix test crash on recent Windows 10.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-09 20:30:31 +02:00
Nikolay Sivov 42f6be1133 ole32: Move more built-in classes to CoGetClassObject().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-13 12:25:36 +02:00
Nikolay Sivov 964a8c909d ole32: Expose ManualResetEvent as registered class.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-12 22:13:54 +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
Nikolay Sivov d65c9fc94f ole32/tests: Link to CoInitializeEx() directly.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-07 22:26:08 +01:00
Zebediah Figura 3772c620b0 ole32/tests: Make the tests less verbose by default.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-02 17:40:12 +01:00
Zebediah Figura f3b9ecef12 ole32/tests: Get rid of some workarounds for no longer supported versions of Windows.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-02 17:40:10 +01:00
Zebediah Figura b181b0bbde ole32/tests: Only test the original SChannelHookCallInfo structure.
This in some sense reverts most of edaf60d71a.
Unless an application depends on the new hook structure, this seems far too
much like testing internal behaviour. That the structure seems to have
changed multiple times in Windows 10 makes this unlikely.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-02 17:40:07 +01:00
Zebediah Figura 261046fbb1 ole32/tests: Fix some failures on Windows 10.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-02 17:40:05 +01:00
Zebediah Figura 8f690d5125 rpcrt4: Fail with CO_E_OBJNOTCONNECTED when trying to call methods on a disconnected proxy.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-21 18:08:37 +02:00
Michael Stefaniuc 59fc5cfc3e ole32: Remove useless casts to self.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-01 09:37:58 +01:00
Piotr Caban aa1cfbbcc8 ole32/tests: Add free threaded marshaler GetUnmarshalClass tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 13:54:21 +02:00
Piotr Caban 4e58d594c1 ole32/tests: Add DfMarshal custom marshaling tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 13:54:18 +02:00
Piotr Caban 3c2764cc95 ole32/tests: Add StdMarshal custom marshaling test.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 13:54:13 +02:00
Piotr Caban b2b5f81861 ole32/tests: Add standard marshaling data tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 13:54:07 +02:00
Piotr Caban 11eb273c28 ole32/tests: Add initial CoGetStandardMarshal tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 13:54:03 +02:00
Piotr Caban f9686b69d0 ole32/tests: Import uuid.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 13:53:59 +02:00
Michael Stefaniuc 77376000ba ole32/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-13 22:13:27 +02:00
Thomas Faber 64041e69e3 ole32/tests: Store GUIDs by reference.
Fixes MSVC build.

Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-05 16:07:18 +02:00
Jacek Caban d9677b1f2a ole32/tests: Fixed tests on win64.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-29 17:13:26 +02:00
Jacek Caban df6b7324df ole32: Use queried interface destination context for marshaling RemQueryInterface result.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-25 12:09:15 +02:00
Jacek Caban 7f83dd11a4 ole32/tests: Add IRpcChannelBuffer and IRpcStubBuffer tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-25 12:08:59 +02:00
Jacek Caban 3834a6e382 ole32/tests: Pass host_object_data struct as an argument to start_host_object2.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-25 10:50:24 +02:00
Zebediah Figura 95299607f9 ole32: Allow marshalling objects from an implicit MTA.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-10 11:15:13 +02:00
Zebediah Figura a4cf16db08 ole32: Allow unmarshalling objects into an implicit MTA.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-10 11:15:11 +02:00
Huw Davies fef5871e28 ole32: Correctly track the number of inits when auto-joining the MTA.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-10 16:41:28 +01:00
Huw Davies edaf60d71a ole32/tests: Update tests to the new channel hook info structure.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-02 23:34:26 +09:00
Huw Davies 1dcf3f8e0a ole32/tests: Test calling CoDisconnectObject from within a COM call to the object.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-14 12:43:21 +09:00
Jacek Caban cb183688bb ole32: Catch crashes in stub object destructors when destroying stub manager. 2015-09-02 22:45:17 +09:00
Jacek Caban c784e34693 ole32: Quote executable name in CreateProcess call.
Fixes tests on VMs that have spaces in executable path.
2015-09-02 22:45:05 +09:00
Andrey Gusev 5cdcd4493f Assorted spelling and typos fixes. 2015-08-18 15:00:13 +09:00
Frédéric Delanoy a0c258460b ole32/tests: Use wine_dbgstr_guid for printing GUIDs. 2014-02-12 19:15:21 +01:00
Huw Davies 5077fc895f ole32: If an object exposes IExternalConnection then don't take down the stub manager if we have remaining weak refs in a call that would otherwise ignore them. 2013-10-24 19:01:57 +02:00
Huw Davies 1864db2faa ole32: Call IExternalConnection_ReleaseConnection with the correct final parameter. 2013-10-24 19:01:57 +02:00
Huw Davies 8235b55917 ole32: When releasing marshal data of a normal ref ignore any remaining weak refs. 2013-10-24 19:01:56 +02:00
Huw Davies 17d81e0987 ole32/tests: Add some tests for CoReleaseMarshalData with a combination of normal and weak marshals. 2013-10-24 19:01:56 +02:00
Huw Davies 61fb28de3f ole32/tests: Make the two reference marshalling thread more generic. 2013-10-24 19:01:56 +02:00
Huw Davies 14a879085e ole32/tests: Extend the lifecycle tests to objects which expose IExternalConnection. 2013-10-24 19:01:56 +02:00
Huw Davies 29c6e10fd8 ole32/tests: Add tests to show that CoLockObjectExternal() calls ReleaseConnection() with the appropriate value for fLastReleaseCloses. 2013-10-18 16:56:57 +02:00
Nikolay Sivov 026b711483 ole32/tests: Compile with -D__WINESRC__. 2013-10-16 11:41:18 +02:00
Nikolay Sivov 98f3ecc32a ole32: GIT can be released on process detach only. 2013-08-23 10:41:24 +02:00
Nikolay Sivov 43d5d86716 ole32: Fix IClassFactory initialization and QueryInterface behavior for GIT. 2013-08-22 10:28:17 +02:00
Jacek Caban b3b390d8ac ole32: Added ISynchronizeHandle tests. 2012-08-13 16:28:49 +02:00
Jacek Caban df4f027238 ole32/tests: Use proper helpers for iface calls. 2012-08-13 16:28:48 +02:00
Alexandre Julliard 2736d28064 ole32: Add a NULL pointer check in CoDisconnectObject. 2012-05-14 18:24:19 +02:00
Francois Gouget 88ba9c3274 ole32/tests: Skip some tests if not allowed to modify the Classes registry key. 2011-09-21 11:35:43 +02:00
Austin English 94f63d7681 ole32/tests: Make sure to use a return value (LLVM/Clang). 2011-07-26 10:22:38 +02:00
David Hedberg a0980b47c8 ole32: Add ManualResetEvent implementation. 2011-05-30 17:55:43 +02:00
Austin English f0ca65a287 ole32/tests: Make sure to use return values (LLVM/Clang). 2011-02-10 09:57:59 -06:00
André Hentschel 0fb2994fdc ole32/tests: Don't test function directly when reporting GetLastError(). 2010-12-31 11:44:02 +01:00