Commit Graph

96 Commits

Author SHA1 Message Date
Zebediah Figura 8341b51bf6 netapi32/tests: Fix the size passed to GetUserNameW() and GetComputerNameW() (Coverity).
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-13 15:59:21 +01:00
Zebediah Figura e480fa87ad netapi32/tests: Remove some workarounds for no longer supported versions of Windows.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-09 22:50:49 +01:00
Zebediah Figura cc5e52ea52 netapi32/tests: Use wide character string constants.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-09 22:50:48 +01:00
Zebediah Figura f9bc81c448 netapi32/tests: Rewrite UNC/HTTP conversion tests.
Windows 1709 changed the algorithm to be far more restrictive. Treat those
results as correct and older versions as broken.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-09 22:50:48 +01:00
Michael Stefaniuc 55ef1f4d92 netapi32/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-06 11:11:25 +02:00
Alex Henrie fb3c1da6ba netapi32/tests: Print NetWkstaTransportEnum error code on test failure.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-20 18:06:17 +01:00
Hans Leidekker 83af2eec50 netapi32/tests: Fix a test failure on Windows 7.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-04 14:10:10 +01:00
Hans Leidekker 199b0bf84e netapi32: Implement DavGetUNCFromHTTPPath.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-24 11:02:15 +02:00
Hans Leidekker 2e9a2d8062 netapi32: Implement DavGetHTTPFromUNCPath. 2015-07-28 09:53:15 +02:00
Bruno Jesus 1fa2986d00 netapi32/tests: Fix a memory leak (Valgrind). 2015-03-23 16:21:04 +09:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Frédéric Delanoy b7dc002158 netapi32/tests: Use BOOL type where appropriate. 2013-11-13 11:21:57 +01:00
Michael Stefaniuc 9463dba830 tests: Use the explicit LoadLibraryA function. 2013-10-02 11:02:21 +02:00
Detlef Riekenberg 1e6ffc9c32 netapi32/tests: Fix workstation test failures on XP. 2012-11-14 19:23:51 +01:00
Detlef Riekenberg 1f0908984c netapi32/tests: Fix an access test failure on XP. 2012-11-14 19:23:01 +01:00
Alexandre Julliard bc8a2b1fb9 netapi32/tests: Don't crash if the administrators group is missing. 2011-07-15 09:59:26 +02:00
Louis Lenders 6f08c7e979 netapi32/tests: Add small conformance test for NetGetJoinInformation. 2011-06-10 15:25:46 +02:00
Louis Lenders de2c401527 netapi32/tests: Add small conformance test for NetLocalGroupGetInfo and LocalGroupGetMembers. 2011-06-08 17:30:51 +02:00
Alexandre Julliard 7c2de56ccd netapi32/tests: Make some variables static. 2010-10-01 13:36:54 +02: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
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
Hans Leidekker d81f9006de netapi32/tests: Fix a memory leak.
Found by Valgrind.
2009-12-07 14:18:29 +01:00
Paul Vriens 0b8ae46836 netapi32/tests: Fix a test failure on Win7. 2009-11-20 11:40:31 +01:00
Alexandre Julliard 5b5054c10e netapi32/tests: Don't try to get the size of a freed buffer. 2009-10-19 16:06:07 +02:00
Ge van Geldorp 675799daf8 netapi32/tests: Add acceptable error codes for Win7. 2009-08-28 16:48:33 +02:00
Ge van Geldorp 1b0648229d netapi32/tests: Fix tests on Win7. 2009-08-24 16:41:17 +02:00
Michael Stefaniuc a8510589c3 netapi32: Remove superfluous pointer casts. 2009-03-05 13:24:49 +01:00
Francois Gouget 49de63595a netapi32/tests: Use win_skip() to skip over unimplemented functionality. 2009-02-23 12:21:37 +01:00
Juan Lang c233fd5796 netapi32: Fix tests on systems with reduced privilege. 2009-02-13 12:59:30 +01:00
Michael Stefaniuc df4cb76100 netapi32/tests: Do not cast NULL. 2008-11-03 13:41:12 +01:00
Marcus Meissner 0025eaefab netapi32: Fixed buffer sizes to GetUserNameW and GetComputerNameW. 2008-10-27 11:28:22 +01:00
Nicolas Le Cam 7526b88013 netapi32/tests: Fix a failing test on localized Windows. 2008-10-18 19:29:43 +02:00
Nicolas Le Cam 6a7017e41f netapi32: Fix well known account RIDs in NetQueryDisplayInformation Level 1. 2008-10-18 19:29:33 +02:00
Nicolas Le Cam 72d764f60e netapi32/tests: Add a test for well known account RIDs. 2008-10-18 19:29:24 +02:00
James Hawkins fc3019ac99 netapi32: Fix two failing tests in NT4. 2008-09-03 14:21:42 +02:00
Paul Vriens d8339f2eed netapi32/tests: Fix the error text. 2008-08-27 14:19:27 +02:00
Kai Blin 20213e49f2 netapi32: Make sure NetUserGetInfo can find the current user. 2008-07-03 11:50:51 +02:00
Kai Blin ce81d843c6 netapi32: Don't test NetUserChangePassword for now. 2008-06-27 12:31:57 +02:00
Kai Blin ac7511b9fa netapi32: Remove double free test from apibuf tests. 2008-06-27 12:26:11 +02:00
Kai Blin 2d02cb056d netapi32: tests/access: Don't clutter up standalone Windows boxes.
On Windows XP (and newer), calling NetUserChangePassword with a NULL
domainname parameter creates a user home directory, iff the machine is
not member of a domain.  As we don't want to clutter up the folder
containing the home directories, specify \\127.0.0.1 as domainname to
access the local samdb.
2008-06-25 10:44:03 +02:00
Huw Davies 09c0bf20a1 netapi32: Free the correct pointers. 2008-06-20 11:19:25 +02:00
Francois Gouget 7857cf3dc7 A couple of spelling fixes. 2008-06-18 16:48:29 +02:00
Alistair Leslie-Hughes 4ece5deeef netapi32: Fix tests when the machine is on DOMAIN. 2008-05-28 11:46:03 +02:00
Maarten Lankhorst a61ef431b8 netapi32: Fix test crash occuring when NetWkstaUserGetInfo fails. 2008-05-06 11:25:37 +02:00
Maarten Lankhorst a2d53016b5 netapi32: Make the tests pass under XP that enforces a strict password policy. 2008-05-05 21:19:44 +02:00
Alistair Leslie-Hughes 4b89de772a netapi32: Correct test for NetUserChangePassword. 2008-03-07 11:13:52 +01:00
Rob Shearman 38a968ff52 netapi32: Fix character count passed to GetUserNameW and GetComputerNameW in init_wksta_tests. 2008-02-25 13:31:57 +01:00
Paul Vriens dd8fe5a973 netapi32/tests: Adding a user with a too long name succeeds on NT4. 2008-02-15 11:03:17 +01:00