Commit Graph

346 Commits

Author SHA1 Message Date
Alistair Leslie-Hughes a5767fc1f3 rpcrt4/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-27 10:46:58 +02:00
Jacek Caban 18fb5d25f1 rpcrt4/tests: Added more server stopping tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-31 21:33:40 +02:00
Nikolay Sivov dcdf7d6f6d rpcrt4/tests: Added missing assignment (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-15 11:11:19 +02:00
Jacek Caban 9a6781f8c9 rpcrt4/tests: Added more server listening tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-16 15:03:57 +01:00
Jacek Caban d0ed6d1035 rpcrt4: Get rid of manual_listen_count and use binary state instead.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-16 15:03:54 +01:00
Hans Leidekker b621973c47 rpcrt4/tests: Also register a firewall exception for the rpc test.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-08 13:53:09 +01:00
Hans Leidekker dd62188627 rpcrt4/tests: Merge rpc_protseq.c into rpc.c.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-08 13:52:59 +01:00
Hans Leidekker 462d348e8d rpcrt4/tests: Register an exception with the firewall to avoid a dialog.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-06 15:02:35 +01:00
Hans Leidekker f8450fae23 rpcrt4: Handle NULL binding in RpcBindingInqAuthClient{,Ex}.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-22 16:31:52 +01:00
Huw Davies eb3ceac1dd rpcrt4/tests: Register the proxies to fix a crash on Windows 8 and 10.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-03 19:44:13 +01:00
Huw Davies f4d598ae08 rpcrt4/tests: Extend the tests for NdrDllGetClassObject().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-03 19:44:10 +01:00
Christoph von Wittich 01290cdc1f rpcrt4: Implement RpcBindingServerFromClient and populate NetworkAddr for each transport.
Add more thorough testing for this function.

Signed-off-by: Colin Finck <mail@colinfinck.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-19 09:44:01 -07:00
Huw Davies f53c320f04 rpcrt4/tests: Win 8 and 10 do not correctly unmarshal a ranged enum16.
In practice this bug is not observed since midl, unlike widl, does not
generate ranges in inline stub mode.  For interpreted stubs, where
midl does generate ranges, the [out] parameters are zero-initialised
by the runtime.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 00:34:25 +09:00
Huw Davies 76ddf58c44 rpcrt4/tests: Mark Win 8.1 behaviour of UuidCreateSequential() as broken.
Some versions of Win 8.1 provide a randomised node ID (with the
multicast bit set) but return S_OK instead of RPC_S_UUID_LOCAL_ONLY.
This is despite having access to a valid MAC address.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-02 11:27:13 +09:00
Huw Davies 225c43b812 rpcrt4/tests: Remove an unnecessary and confusing message.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 22:17:14 +09:00
Jacek Caban ffe01b33f1 rpcrt4/tests: Don't load GetUserNameEx dynamically.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-30 11:43:22 +09:00
Colin Finck b59c53fbff rpcrt4: Add a test for RpcBindingServerFromClient (todo_wine).
Signed-off-by: Colin Finck <mail@colinfinck.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 12:47:18 +09:00
Nikolay Sivov 6ac3c09a76 rpcrt4/tests: Fix indentation warning on GCC 6.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-10 22:22:39 +09:00
Jacek Caban 3b6cb60ea6 rpcrt4: Added RpcServerRegisterAuthInfoW failure test.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:54:18 +09:00
Jacek Caban f3f07bdf35 rpcrt4: Added RpcMgmtIsServerListening tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 12:45:02 +09:00
Gerald Pfeifer e6ca322fb1 rpcrt4/tests: Cast to ULONGLONG instead of LONGLONG to avoid shift overflow. 2015-09-04 16:15:00 +09:00
Huw Davies 76dc3b64ae rpcrt4: Set CorrDespIncrement to the size of the (non-range) /robust payload.
fHasNewCorrDesc is only set on older versions of Windows that don't
set CorrDespIncrement, but it can't hurt to continue to set it.
2015-07-13 22:11:17 +09:00
Huw Davies 6518b72889 rpcrt4: Initialize CorrDespIncrement to zero and mark the pre-Vista behaviour as broken. 2015-07-13 22:11:12 +09:00
Huw Davies 9f2c668c99 rpcrt4/tests: Fix some tests on Win 8. 2015-04-24 14:29:28 +09:00
Huw Davies b24ce98af3 rpcrt4/tests: Avoid a double-free.
Commit 4cf70b1418 was causing the tests to
crash.  The reason is due to a Wine bug in NdrPointerUnmarshall().
Windows returns the same pointer (which is later released in a call to
NdrPointerFree()), while Wine makes a copy which Valgrind correctly
spots is leaked.
2015-04-20 21:22:36 +09:00
Nikolay Sivov 4cf70b1418 rpcrt4/tests: Fix a minor leak (Valgrind). 2015-04-13 15:05:07 +09:00
Nikolay Sivov 73a68b065b rpcrt4: Fix RpcMgmtStopServerListening() return value when we're not listening. 2015-03-26 14:21:49 +09:00
Nikolay Sivov fd25d9aadb rpcrt4/tests: Use status definitions instead of numeric values. 2015-03-26 14:21:46 +09:00
Nikolay Sivov 66c05a4597 rpcrt4: Export I_UuidCreate(). 2015-03-10 15:09:33 +09:00
Nikolay Sivov d240fdff18 rpcrt4: Implement MesBufferHandleReset(). 2015-03-04 21:50:37 +09:00
Nikolay Sivov 37dd441587 rpcrt4: Fix argument check in MesEncodeFixedBufferHandleCreate(). 2015-03-03 23:16:42 +09:00
Amine Khaldi 19254eb438 rpcrt4/tests: Remove unused if3_table and if4_table (Clang). 2014-10-24 19:58:05 +09:00
Dmitry Timoshkov 05aab53f38 rpcrt4/tests: Add a couple of tests for marshalling an array of strings. 2014-04-02 15:46:51 +02:00
Frédéric Delanoy b553f54323 rpcrt4/tests: Use common wine_dbgstr_guid implementation from test.h. 2014-01-30 12:42:55 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard d08ff3ff19 makefiles: Use a single variable for all types of idl files. 2013-12-31 18:15:17 +01:00
Jacek Caban 06246aff90 rpcrt4: Compile tests with -D__WINESRC__. 2013-11-08 16:29:43 +01:00
Alexandre Julliard c3a48aab20 makefiles: Add makedep pragmas for client and server idl files. 2013-11-05 20:38:18 +01:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Alexandre Julliard 38e8f6d83f rpcrt4/tests: Define the required Windows version before including anything. 2013-02-18 14:51:05 +01:00
Francois Gouget 138f119705 rpcrt4/tests: Trace the GUID when it is wrong. 2013-02-11 17:52:47 +01:00
Hans Leidekker 4d6ff85433 rpcrt4: Add a stub implementation of RpcServerInqDefaultPrincNameA/W. 2012-05-09 17:49:29 +02:00
Thomas Faber c38ba3a411 rpcrt4/tests: Fix build with PSDK headers. 2012-05-07 11:38:03 +02:00
Alexandre Julliard cb5beede16 rpcrt4/tests: Add more tests for integer ranges to show that ranges are independent.
Reported by Jérôme Gardou.
2011-09-19 13:17:41 +02:00
André Hentschel 328acc81fc rpcrt4/tests: Fix NULL string handling in an ok() check. 2011-08-30 11:52:59 +02:00
Frédéric Delanoy 760faf01a9 tests: Assorted spelling fixes. 2011-08-04 18:27:37 +02:00
André Hentschel f98369f21c rpcrt4/tests: Only free string when function succeeded. 2011-08-01 11:06:35 +02:00
Alexandre Julliard 9d9f6da7da rpcrt4/tests: Fix a test failure on 64-bit platforms. 2011-07-28 11:25:08 +02:00
Alexandre Julliard 9d4e79e382 rpcrt4/tests: Add a test about unmarshalling of an out-only structure. 2011-07-27 11:51:24 +02:00
Alexandre Julliard 717bd66440 widl: Default to the cdecl calling convention in client/server functions. 2011-06-13 11:53:28 +02:00