Commit graph

1053 commits

Author SHA1 Message Date
Alex Henrie 73d2f2285b kernelbase: Ensure null termination in RegGetValue[AW]. 2024-07-09 11:02:14 +02:00
Alex Henrie 004eb16c1f advapi32/tests: Drop security test workarounds for Windows <= 2000. 2024-07-08 23:09:04 +02:00
Alex Henrie 33874068b4 advapi32/tests: Test RegGetValue[AW] null termination. 2024-07-08 23:09:04 +02:00
Elizabeth Figura 9f6e44fd9c advapi32/tests: Test token label inheritance. 2024-06-06 22:29:58 +02:00
Elizabeth Figura ed297ecba5 server: Inherit the source token's label in token_duplicate().
And assign it in token_create_admin().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56640
2024-06-06 22:29:56 +02:00
Piotr Caban b13477deb4 advapi32/tests: Remove all files created by RegLoadAppKey tests. 2024-03-21 22:19:58 +01:00
Piotr Caban cc62cdc1fd advapi32/tests: Test if modifications are saved in RegUnLoadKey. 2024-03-21 22:19:58 +01:00
Piotr Caban 98bd248778 advapi32/tests: Remove all files created by RegLoadKey tests. 2024-03-21 22:19:58 +01:00
Piotr Caban cdc842f60d advapi32/tests: Merge RegLoadKey and RegUnLoadKey tests. 2024-03-21 22:19:58 +01:00
Noah Berner 898892d5f0 advapi32/tests: Add todo_wine to tests that are currently failing. 2024-03-14 18:41:42 +01:00
Zhiyi Zhang 058bfeed1d advapi32/tests: Test creating registry keys with a NULL return key pointer. 2024-03-04 22:50:27 +01:00
Paul Gofman 6cbe072c37 kernelbase: Use KEY_WOW64_64KEY flag when 64 bit registry access is assumed. 2024-02-28 22:40:43 +01:00
Alex Henrie ce6e298a68 advapi32/tests: Use CRT allocation functions. 2024-02-23 17:13:19 +01:00
Daniel Lehman 452b59bb4f advapi32/tests: Add some more EventLog tests. 2024-01-31 11:31:51 +01:00
Daniel Lehman 8c91e484cb advapi32/tests: Reduce reallocations. 2024-01-31 11:31:51 +01:00
Bernhard Übelacker 26e383c8df server: Avoid unloading of HKU .Default registry branch.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55000
2024-01-25 20:30:53 +01:00
Sven Baars a1adaaca27 advapi32/tests: Skip WoW64 tests on 32-bit in test_reg_create_key.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=54613
2024-01-17 11:07:00 +01:00
Sven Baars 7565d61403 advapi32/tests: Introduce a new has_wow64 helper. 2024-01-17 11:07:00 +01:00
Francois Gouget 96da5a8a35 advapi32/tests: Fix a service stop race condition.
If some Windows services stop while testing EnumServicesStatusW()'s
resume handle support, one possibility is that the still running
services all fit in the specified buffer, invalidating the test so
there is a retry in place.
But in some cases the second call just returns fewer tests than
expected. So retry in that case too.

Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=53460
2023-11-21 22:46:57 +01:00
Hans Leidekker 03a2d4851b advapi32/tests: Get rid of an unreliable eventlog test.
It can take a while before a new eventlog file is created on Windows. Rather than
waiting for it I chose to remove this test since it seems doubtful that any application
will need to access the file directly.
2023-11-02 16:50:54 +01:00
Alexandre Julliard 7ccb5df0fc makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
Sven Baars 2821016247 advapi32/tests: Fix a typo (Coverity). 2023-10-30 17:18:59 +01:00
Daniel Lehman bb88ca7056 advapi32/tests: Add ReadEventLogW tests for direction. 2023-10-27 11:33:41 -05:00
Hans Leidekker 2ad2ad035d advapi32/tests: Skip WoW64 registry tests on 32-bit. 2023-10-26 16:03:30 -05:00
Hans Leidekker 362f953748 advapi32/tests: Get rid of workarounds for old Windows versions. 2023-10-26 16:03:30 -05:00
Zebediah Figura 245bdef5b1 advapi32: Implement GetSecurityInfo(SE_WINDOW_OBJECT).
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55763
2023-10-16 18:53:48 +02:00
Zebediah Figura 398025083d advapi32/tests: Add more tests for GetSecurityInfo(). 2023-10-16 18:53:48 +02:00
Zebediah Figura 3ecedb7e14 advapi32/tests: Use StringFromGUID2(). 2023-10-16 18:53:48 +02:00
Zebediah Figura 46dfbf89d2 advapi32: GetNamedSecurityInfo() takes a const name argument.
At least in the Windows 10 SDK.
2023-10-16 18:53:48 +02:00
Francois Gouget 0e44c658b6 advapi32/tests: Don't check the content of the buffer if ReadEventLog() fails. 2023-10-13 18:26:10 +02:00
Francois Gouget b34ec64537 advapi32/tests: Avoid unneeded reallocations of the ReadEventLog() buffer.
Also we don't care about the content of the buffer so using
HeapRealloc() makes no sense.
2023-10-13 18:26:09 +02:00
Francois Gouget e0c3530a74 advapi32/tests: Add the read_write info to the failures context.
Otherwise it's impossible to know which iteration failed.
2023-10-13 18:26:07 +02:00
Francois Gouget e6b5afcbd8 advapi32/tests: Better identify OpenEventLogA() failures. 2023-10-13 18:26:07 +02:00
Daniel Lehman 9373f330e5 advapi32/tests: Skip ReadEventLog on failure to open System log.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55731
2023-10-12 10:21:56 +02:00
Daniel Lehman d2a606bc92 advapi32/tests: Add ReadEventLogA tests for EventlogStarted. 2023-10-09 11:35:08 +02:00
Daniel Lehman 428a1219fd advapi32/tests: Add ReadEventLogW tests for EventLogStarted. 2023-10-05 18:49:44 +02:00
Dmitry Timoshkov d7c5797bee wevtsvc: Remove duplicate dwControlsAccepted initialization.
dwControlsAccepted is initialized a few lines earlier.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-09-08 17:47:32 +02:00
Alexandre Julliard c8c22e1348 advapi32/tests: Avoid sizeof() in traces. 2023-07-06 20:54:30 +02:00
Zebediah Figura bf45b87a3a advapi32/tests: Add more tests for token duplication. 2023-05-08 20:02:28 +02:00
Nikolay Sivov a63612045d ntdll/tests: Add some RtlValidSecurityDescriptor() tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-05-03 16:48:45 +02:00
Francois Gouget 4abd7af2e4 advapi32/tests: Make the services resume handle traces more informative. 2023-04-13 18:00:25 +02:00
Sven Baars da0ec7fbbd kernelbase: Recursively obtain the Wow6432Node parent. 2023-03-28 20:40:09 +02:00
Sven Baars 63c6b89314 kernelbase: Add support for shared registry keys. 2023-03-28 20:40:09 +02:00
Sven Baars 3f82f6ff59 kernelbase: Use open_key() to obtain any existing Wow6432node in create_key(). 2023-03-22 20:03:52 +01:00
Sven Baars 8b327eee5e advapi32/tests: Copy Software\Classes tests from ntdll. 2023-03-22 20:03:51 +01:00
Francois Gouget 2078afb928 advapi32/tests: Skip some tests if the EventLog service crashed.
advapi32:eventlog crashes the EventLog service in some Windows
versions so defend against that condition.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53461
2023-03-17 19:32:00 +01:00
Francois Gouget 42bd3bb79a advapi32/tests: Enumerate the services using the Unicode API.
The ANSI one is broken in some UTF-8 locales which prevents most of the
tests from running. So use the Unicode API for most tests and just
confirm that it is consistent with the ANSI one instead of doing the
reverse.

Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=52895
2023-03-17 19:02:10 +01:00
Francois Gouget 81e33a3484 advapi32/tests: Take into account service start / stop race conditions.
Services sometimes start or stop between two EnumServicesStatus()
calls. Fortunately this is rare so the tests can just retry to get the
expected result.

Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=53460
2023-03-17 19:02:08 +01:00
Francois Gouget 1da9e7c087 advapi32/tests: Better check the EnumServicesStatusExW() output.
It only has this one test.
2023-03-17 19:02:05 +01:00
Francois Gouget 3bfe315707 advapi32/tests: Separate the EnumServicesStatus() and EnumServicesStatusEx() tests. 2023-03-17 19:02:02 +01:00