Fabian Maurer
0d7f7bec9d
rpcrt4/tests: Avoid "misleading indentation" warnings.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-31 18:38:54 +01:00
Serge Gautherie
57f08ba525
rpcrt4/tests: Remove now useless forced 0x0500 API versions.
...
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-17 10:27:16 +01:00
Sven Baars
ec921c2d15
rpcrt4/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-16 17:15:09 +01:00
Zebediah Figura
f848d03f95
rpcrt4: Fix handling of FC_ALIGNM* directives.
...
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-11-20 09:57:21 +01:00
Zebediah Figura
9a46a1fc9e
rpcrt4/tests: Add a test for FC_ALIGNM* directives.
...
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-11-20 09:57:19 +01:00
Zebediah Figura
666bbe084e
rpcrt4: Avoid reference leaks when unmarshalling [in, out] pointers.
...
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-11-02 15:18:00 +01:00
Zebediah Figura
b7cc627c6e
rpcrt4/tests: Add some tests for marshalling interface pointers.
...
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-11-01 21:50:48 +01:00
Zebediah Figura
03be1605db
rpcrt4: Ignore fMustAlloc in PointerUnmarshall().
...
Use our own heuristics to decide whether we, or the inner routine, must
allocate.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-30 19:00:35 +01:00
Jacek Caban
d6c94be74d
rpcrt4/tests: Get rid of no longer needed win9x checks.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-17 17:33:38 +02:00
Zebediah Figura
5fae77e4db
rpcrt4: Unmarshal into a stack pointer on the server side if possible.
...
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-10-17 10:01:20 +02:00
Zebediah Figura
3efe54f66d
rpcrt4/tests: Add more tests for NdrPointerUnmarshall() and NdrPointerFree() on the server side.
...
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-10-17 10:01:18 +02:00
Zebediah Figura
f95777e134
rpcrt4/tests: Test that NdrPointerFree() doesn't free stack pointers.
...
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-10-17 10:01:17 +02:00
Zebediah Figura
99672dbe91
rpcrt4/tests: Use publicly defined NDR constants.
...
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-10-17 10:01:15 +02: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
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
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
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
Jacek Caban
06246aff90
rpcrt4: Compile tests with -D__WINESRC__.
2013-11-08 16:29:43 +01:00
Alexandre Julliard
38e8f6d83f
rpcrt4/tests: Define the required Windows version before including anything.
2013-02-18 14:51:05 +01:00
Thomas Faber
c38ba3a411
rpcrt4/tests: Fix build with PSDK headers.
2012-05-07 11:38:03 +02:00
Alexandre Julliard
7bfa513bc9
rpcrt4/tests: Fix a test failure on XP SP3.
2010-10-08 11:56:45 +02:00
Michael Stefaniuc
3a8a9620ab
rpcrt4/tests: Fix duplicate expressions in if conditions.
2010-03-26 15:35:43 +01:00
Rob Shearman
088c0857c9
rpcrt4: Add support for marshalling/unmarshalling complex arrays of pointers.
2010-03-16 11:42:09 +01:00
Huw Davies
24db8d384c
rpcrt4: Fix tests on win64.
2010-02-15 16:07:53 +01:00
Paul Vriens
693dd47689
rcprt4/tests: Don't crash on NT4 or lower.
2010-02-12 16:39:39 +01:00
Huw Davies
6805045b05
rpcrt4: Add tests for multi-dimensional conformant arrays.
2010-02-11 17:47:59 +01:00
Rob Shearman
cd453f453f
rpcrt4: Fix memory leak in test_conf_complex_struct.
2009-11-29 16:42:15 +01:00
Rob Shearman
c8f9df7f1e
rpcrt4: Fix uninitialised memory read in ndr_marshall tests.
...
The memory needs to be initialised since NDR will look at the memory
to see if it needs to allocate memory for embedded pointers.
2009-11-29 16:40:20 +01:00
Rob Shearman
51dbc8d06b
rpcrt4: Fix the return value of NdrFullPointerQueryRefId for a pointer ID of 0.
2009-11-18 14:13:33 +01:00
Rob Shearman
d6f293f7be
rpcrt4: Add test for calling NdrFullPointerQueryRefId with a 0 pointer ID.
2009-11-18 14:13:30 +01:00
Alexandre Julliard
8ce9b8f1be
rpcrt4/tests: Remove tests for specific values of bit fields.
2009-10-09 16:09:20 +02:00
Francois Gouget
ee7902b283
rpcrt4/tests: Fix compilation on systems that don't support nameless unions.
...
Also omit the nameless union macros from the error messages for clarity.
2009-08-31 12:41:21 +02:00
Alexandre Julliard
39d75dfba4
rpcrt4/tests: Fix the marshalling test for Win9x.
2009-06-19 12:49:20 +02:00
Alexandre Julliard
c3c8aa3b23
rpcrt4/tests: Fix the marshalling test for Win64.
2009-06-19 12:38:46 +02:00
Alexandre Julliard
2c1b94bde2
rpcrt4/tests: Fix a few more broken tests on NT4.
2009-06-01 16:16:05 +02:00
Alexandre Julliard
05f57146c8
rpcrt4/tests: Remove tests for v1 memory list, the layout is wrong and we don't care about it anyway.
2009-05-28 20:30:05 +02:00
Alexandre Julliard
03b6dcb4a1
rpcrt4/tests: Mark some stub message tests broken for older Windows versions.
...
Group the common tests in a function shared between client and server.
2009-05-28 20:29:51 +02:00
Alexandre Julliard
feeaf97c81
rpcrt4: Implement NdrPointerMemorySize and enable the corresponding tests.
2009-05-28 11:52:36 +02:00
Alexandre Julliard
49f1433cdc
rpcrt4/tests: Enable some tests that no longer crash Wine.
2009-05-28 11:41:12 +02:00
Alexandre Julliard
bb18c5ab07
rpcrt4/tests: Comment out a couple of tests that crash on older Windows versions.
2009-05-28 11:38:41 +02:00
Alexandre Julliard
36965f5726
rpcrt4/tests: Fix a number of 64-bit issues in the ndr_marshall test.
2009-05-27 21:18:35 +02:00
Michael Stefaniuc
e3bb1c8243
rpcrt4: Remove superfluous pointer casts.
2009-02-16 16:01:37 +01:00
Rob Shearman
d3085abc08
Change parameter type from size_t to SIZE_T for MIDL_user_allocate.
2009-02-02 11:55:21 +01:00
Rob Shearman
47adeb0525
rpcrt4: Add tests for NdrGetUserMarshalInfo.
2009-01-28 14:16:19 +01:00
Rob Shearman
b46f168650
rpcrt4: Don't test for a specific value for fBufferValid in test_client_init.
...
It's not consistent across different Windows versions.
2009-01-28 14:16:01 +01:00
Michael Stefaniuc
c171379f47
include: Use ULONG in rpcdcep.h for Win64 compatibility.
2009-01-12 13:06:44 +01:00