1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00
Commit graph

286 commits

Author SHA1 Message Date
Alistair Leslie-Hughes
e01cb2b915 ntoskrnl/tests: Add FltBuildDefaultSecurityDescriptor test.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2024-03-27 22:44:57 +01:00
Rémi Bernon
866f17c147 ntoskrnl.exe/tests: Use SUOI_FORCEDELETE when uninstalling the driver.
Avoids conflicts with the dinput tests somehow.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52962
2024-01-10 21:07:27 +01:00
André Zwing
532418b091 ntoskrnl/tests: Use RtlNtStatusToDosErrorNoTeb() for stateless conversion. 2024-01-05 18:46:07 +01:00
Alex Henrie
6e45c17182 ntoskrnl/tests: Put test_input on the stack in the main_test function. 2023-11-16 22:24:01 +01:00
Alexandre Julliard
6b4399e369 ws2_32: Make htonl/htons/ntohl/ntohs proper functions. 2023-10-10 11:05:28 +02:00
Rémi Bernon
6afe77a259 ntoskrnl/tests: Use wine/test.h in the driver tests. 2023-09-07 22:38:40 +02:00
Etaash Mathamsetty
03d6a86786 ntoskrnl.exe/tests: Add KeInitializeDpc tests. 2023-09-06 12:05:49 +02:00
Alexandre Julliard
cfcf5ca286 makedep: Make the spec file optional for testdll resources. 2023-09-05 12:45:15 +02:00
Rémi Bernon
81da9ff0f8 makedep: Use #pragma makedep testdll for TESTDLL resources. 2023-09-05 12:44:34 +02:00
Alexandre Julliard
08cfcb71bd ntoskrnl.exe/tests: Avoid sizeof() in traces. 2023-07-06 20:54:30 +02:00
Alexandre Julliard
93630ce14e include: Remove redundant __WINE_USE_MSVCRT checks. 2023-06-12 21:21:41 +02:00
Etaash Mathamsetty
10765f2956 ntoskrnl.exe/tests: Add Driver Object Extension Tests. 2023-03-02 20:10:46 +01:00
Alex Henrie
b9627b996f ntoskrnl: Add ExGetPreviousMode and test.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54378
2023-03-01 21:39:30 +01:00
Zebediah Figura
80581c608c Revert "ntoskrnl.exe: Enforce path case in WM_DEVICECHANGE notifications.".
This reverts commit c489356d0b.
2023-02-20 23:00:33 +01:00
Zebediah Figura
f745900a4b ntoskrnl: Preserve the device instance ID case in IoRegisterDeviceInterface(). 2023-02-20 23:00:33 +01:00
Zebediah Figura
297e4ae76b ntoskrnl/tests: Expand tests for device and interface naming. 2023-02-20 23:00:33 +01:00
Zebediah Figura
d05b88dd88 user32: Map DEV_BROADCAST_DEVICEINTERFACE to ANSI for registered device notifications. 2023-02-20 23:00:33 +01:00
Jinoh Kang
cfbe8aed48 ntoskrnl.exe/tests: Use loopback address in test_wsk_listen_socket.
Today, the driver_netio test server binds to the wildcard address
(0.0.0.0).  This may trigger a firewall alert on Windows 7, and the
alert UI window may interfere with user32:msg tests.

Fix this by binding to the loopback address (127.0.0.1) instead.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53891
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54202
2023-01-24 18:13:19 +01:00
Zebediah Figura
5e3e0a519d ntoskrnl/tests: Ignore CONFIGFLAG_FINISH_INSTALL on the child device.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53976
2022-12-13 12:44:51 +01:00
Matthew Tran
c712e571d2 ntoskrnl.exe/tests: Fix incorrect HID STRING_INDEX tag value. 2022-11-21 21:21:22 +01:00
Zebediah Figura
f801ac97fb ntoskrnl: Set SPDRP_CONFIGFLAGS in install_device_driver(). 2022-11-17 18:01:48 +01:00
Zebediah Figura
b682102db4 setupapi: Set SPDRP_CONFIGFLAGS in SetupDiInstallDevice().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53387
2022-11-17 18:01:48 +01:00
Zebediah Figura
3a254079b9 ntoskrnl/tests: Test retrieving SPDRP_CONFIGFLAGS. 2022-11-17 18:01:48 +01:00
Rémi Bernon
1c05faaa71 ntoskrnl.exe/tests: Add dummy flaky test count.
Fixes "Use of uninitialized value $Flaky" message in testbot reports.
2022-10-20 17:21:45 +02:00
Alexandre Julliard
6ca6bb542e ntoskrnl/tests: Fix affinity test when there are too many CPUs. 2022-09-12 12:46:25 +02:00
Claire Girka
3d25202eaf ntoskrnl: Set device ContainerID from driver.
Using SetupDiGetDeviceRegistryPropertyW rather than SetupDiGetDeviceRegistryPropertyA
in the test, because games use the former, and Windows returns the Container ID as a
WCHAR string either way.
2022-07-25 11:22:29 +02:00
Claire Girka
d930a0cc5e ntoskrnl/tests: Add test for getting SPDRP_BASE_CONTAINERID from PnP driver. 2022-07-25 11:22:27 +02:00
Zebediah Figura
03034f2c0e ntoskrnl/tests: Fix a test failure. 2022-07-13 12:50:07 +02:00
Zebediah Figura
9fbdf2b434 ntoskrnl: Enumerate child devices on a separate thread. 2022-07-11 10:35:15 +02:00
Zebediah Figura
92456eb747 ntoskrnl/tests: Also test that IoInvalidateDeviceRelations() during device enumeration doesn't deadlock.
wineusb enumerates new devices and completes IRPs from the same thread (as if it
were an IRQ thread). On the other hand, the Hauppauge cx231xx USB driver
performs I/O from within IRP_MN_START_DEVICE. If the wineusb "IRQ" thread is
currently trying to report a new device, it won't be able to report I/O
completion, resulting in a deadlock.

Although wineusb could be modified to use more threads, these tests show that
calling IoInvalidateDeviceRelations() should not block in this situation.
2022-07-11 10:35:13 +02:00
Zebediah Figura
200d7b25ec ntoskrnl/tests: Test asynchronicity of device PnP events. 2022-07-11 10:35:13 +02:00
Eric Pouech
bb7481d24b ntoskrnl.exe/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-02 20:17:15 +01:00
Eric Pouech
4247193832 ntoskrnl.exe/tests: Use correct integral type.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-02 20:17:15 +01:00
Sven Baars
d78f234a10 ntoskrnl.exe/tests: Let CertCloseStore() delete the certificate context.
This should fix test failures caused by ef437b41ee.

Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-25 19:02:18 +01:00
Sven Baars
ef437b41ee ntoskrnl.exe/tests: Fix some memory leaks (Valgrind).
Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-14 21:20:41 +01:00
Fabian Maurer
56412c1145 ntoskrnl/tests: Avoid "misleading indentation" warnings.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 22:04:05 +01:00
Alexandre Julliard
f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Alexandre Julliard
a1cbf24468 ntoskrnl/tests: Use the standard va_list instead of __ms_va_list.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-22 11:12:23 +02:00
Zebediah Figura
1eb56b20ba ntdll: Explicitly return whether an async is complete in async_callback_t.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-14 18:31:20 +02:00
Zebediah Figura
f5bd946399 kernelbase: Don't set the output size in DeviceIoControl() if the NT status denotes error.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-14 18:30:44 +02:00
Zebediah Figura
cc7e3ec8e2 server: Create pseudo-fds as initially signaled.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-14 18:30:29 +02:00
Chip Davis
7c0f642005 ntoskrnl: Always copy the output buffer for non-buffered ioctls.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=30155
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-14 18:30:25 +02:00
Zebediah Figura
5af74129bd ntdll: Do not fill the IOSB if a device IRP failed synchronously.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-14 18:30:17 +02:00
Rémi Bernon
757325bf77 ntoskrnl.exe/tests: Fix inverted winetest_win_skip condition.
And change skipped test message. It's not really useful and it will fail
the tests if the main test summary doesn't match the number of skipped
messages.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-13 11:34:12 +02:00
Zebediah Figura
4a73fbbd40 server: Do not signal completion if the async failed synchronously.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-13 11:33:22 +02:00
Zebediah Figura
097685aa9e ntoskrnl: Report separately whether an IRP was marked pending.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-13 11:33:19 +02:00
Zebediah Figura
484b78bda0 ntoskrnl: Report the initial status of an IRP separately from the IOSB status.
Based on a patch by Chip Davis.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=30155
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-13 11:32:18 +02:00
Rémi Bernon
6aef301e08 dinput8/tests: Move HID driver tests from ntoskrnl.exe.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-09 22:30:45 +02:00
Zebediah Figura
a1c42293a2 server: Don't wake up always-blocking asyncs.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-09 22:30:45 +02:00
Zebediah Figura
0f7c784fb7 ntoskrnl/tests: Test a pending NtQueryVolumeInformation call on an overlapped file handle.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-09 22:30:45 +02:00