Commit graph

126 commits

Author SHA1 Message Date
Timo Kreuzer e77da17f68 [KMTEST] Add test for FileEndOfFileInformation 2024-04-29 22:50:18 +02:00
Dmitry Borisov f4a38a05ec [KMTESTS:NTOS_IO] Add a simple test for IoConnectInterrupt
CORE-17256
2024-02-11 20:24:15 +03:00
Timo Kreuzer 908cda5ee4 [KMTEST] Fix duplicated test names to stop testman from blowing up 2023-11-18 15:01:06 +02:00
Timo Kreuzer a3d22bba1a [RTL_APITEST] Move RtlIntSafe test from kmtest to rtl_apitest 2023-11-10 19:00:41 +02:00
Timo Kreuzer bdf52a9868 [RTL_APITEST] Add rtl_unittest
First test is RtlCaptureContext
2023-11-10 19:00:41 +02:00
Timo Kreuzer 520cf2294d [APITESTS] Share ok_eq_* macros between apitests and kmtests
This makes it possible to share sources between kmtest and apitests, e.g. for rtl.
2023-11-10 19:00:41 +02:00
Timo Kreuzer e7cb6f4920
[KMTEST:TcpIp] Use 10 second timeout value instead of INFINITE (#5586)
* [KMTEST:TcpIp] Use 10 second timeout value instead of INFINITE

On x64 the test sometimes fails to connect and then times out on the testbot, causing the system to be rebooted.

Co-authored-by: Stanislav Motylkov <x86corez@gmail.com>
2023-08-21 21:46:20 +03:00
George Bișoc f364bfc8f4
[KMTESTS:OB] Refactor OBJ_DIRECTORY_TYPE_INFO_SIZE define construct
Object types are mere type names with no backslash. Also remove wcslen()
from the define, it's not needed.
2023-03-25 19:47:26 +01:00
George Bișoc 1b33c9415c
[KMTESTS:OB] Write some object information querying tests 2023-03-25 11:55:11 +01:00
Joachim Henze 09dde2cff9
[REACTOS] "http://www.reactos" -> "https://reactos" (#5043)
To harmonize, to save some bytes, and last but not least for security reasons.
This can be understood as an addendum to (#2619).
2023-02-06 17:01:52 +03:00
Mark Jansen 3bf4ef6fec [KMTESTS:CC] Disable Cc tests that seem to hang TestWHS 2023-02-02 19:08:00 +01:00
Mark Jansen 83f076918a
[KMTESTS:CC] Disable broken CcCopyRead / CcCopyWrite 2023-02-02 15:08:40 +01:00
Thomas Faber 04b35ecc23
[KMTESTS:IO] Fix some failures in IoDeviceObject test. ROSTESTS-380 2023-02-01 20:05:57 -05:00
Thomas Faber 6b863f63c2
[KMTESTS:MM] Fix MmReservedMapping test failures on PAE kernels. 2023-01-29 11:39:56 -05:00
Thomas Faber 5f1fff696b
[KMTESTS:KE] Correctly handle MP builds in KeSpinLock test. 2023-01-28 23:26:30 -05:00
Thomas Faber 2f63da62e3
[KMTESTS:MM] Fix failures in MmMdl test on machines with 2GB of free RAM. 2023-01-28 23:17:52 -05:00
Timo Kreuzer 52fe43e87b [KMTEST] Add a NULL check 2022-12-13 07:18:24 +01:00
Timo Kreuzer 9e12af569f [KMTEST] Handle failure in KmtLoadDriver and KmtOpenDriver 2022-12-13 07:18:24 +01:00
George Bișoc b922b6d7fc
[NTOS:KE] Write a basic kernel mode test for FPU Save/Restore mechanism 2022-05-24 18:39:46 +02:00
George Bișoc 4e25c35375
[KMTESTS:PS] Write some tests for process quota management 2022-01-11 10:11:10 +01:00
Victor Perevertkin 188f5dc50a
[KMTESTS:IO] Avoid crashing in IoCreateFile test when pool allocations are failed 2021-12-28 02:51:52 +03:00
George Bișoc aaa2094208
[KMTESTS:SE] Implement SeFilterToken testcase 2021-11-07 14:14:19 +01:00
Hermès Bélusca-Maïto 9393fc320e
[FORMATTING] Remove trailing whitespace. Addendum to 34593d93.
Excluded: 3rd-party code (incl. wine) and most of the win32ss.
2021-09-13 03:52:22 +02:00
George Bișoc 58c42afec2
[XDK][KMTESTS:SE] Move the auto inherit ACE flags in the right place
These bit flags are documented in CreatePrivateObjectSecurityEx API routine call in MSDN and their reasonable location should be XDK (NTIFS section more or less) and not Kernel tests suite (KMTESTs). Also assign these flags the right values.

https://docs.microsoft.com/en-us/windows/win32/api/securitybaseapi/nf-securitybaseapi-createprivateobjectsecurityex
2021-09-09 19:29:50 +02:00
Jérôme Gardou 2289deb849 [KMTESTS:NTOS_IO] Fix check of spinlocks in case of checked builds
Down back to zero failures
2021-07-23 17:40:57 +02:00
George Bișoc 32a45ce15c [KMTESTS:SE] Implement initial logon session tests
This implements tests for SeMarkLogonSessionForTerminationNotification exported routine so far.
2021-07-15 19:31:46 +02:00
Timo Kreuzer 8a437ac528 [ROSTESTS] Skip some test on x64 2021-07-10 18:41:12 +02:00
Jérôme Gardou 8d665f8959 [KMTESTS] Fix tests for uniprocessor checked build 2021-06-29 11:49:20 +02:00
Timo Kreuzer 20c1da7963 [RTL][KMTEST] RtlPcToFileHeader doesn't handle user mode images in kernel mode 2021-06-05 14:39:29 +02:00
George Bișoc ac97662619
[KMTESTS:SE] Remove erroneous tests regarding impersonation level
These tests didn't make much sense. The captured token from the subject context is not an impersonation token and both Windows and ReactOS ultimately fail on those tests.
2021-05-11 09:20:28 +02:00
Serge Gautherie 8c18617fa7
[CMAKE] Fix few copy-paste typos in add_pch() calls (#3508)
Follow-up to e898c9e.
2021-03-06 19:11:56 +01:00
Jérôme Gardou d52f937120 [KMTESTS:NTOS_MM] Purge & flush cache when there is a data section object.
Those purge & flush the mapped sections too. That's what fastfat_new & other FS drivers do.
2021-02-04 10:50:59 +01:00
Jérôme Gardou fe5e23e470 [KMTESTS:NTOS_CC] Fix a test format 2021-02-02 10:18:52 +01:00
Jérôme Gardou a46ee7dafe [KMTEST:NTOS_CC] Fix buffer size calculation 2021-02-02 10:15:19 +01:00
Victor Perevertkin 46ca069e42
[XDK] Remove UNREFERENCE_LOCAL_VARIABLE macro
Change UNREFERENCED_PARAMETER to (VOID)P to support const parameters
2021-01-19 00:15:02 +03:00
Jérôme Gardou 6929451500 [KMTEST] Test what happens when CcSetFileSizes is called with data still mapped at the tail od the file 2020-12-22 11:35:30 +01:00
Jérôme Gardou 115b8290cd [KMTESTS] Add more tests for CcMapData & CcPinRead
Those show the shortcomings of the current implementation in ReactOS
2020-12-22 11:03:51 +01:00
Victor Perevertkin 784725143e
[KMTESTS:IO] Remove ReactOS-specific workaround in IoVolume test
ReactOS is now more compatible, and names volume devices as
"\Device\HarddiskVolume%u"
2020-12-16 01:25:08 +03:00
Jérôme Gardou b4debdcf4d [KMTEST:FSRTL] Add more tests for MCB API
These were obtained through debug prints of fastfat_new in ReactOS.
2020-12-08 11:48:00 +01:00
Jérôme Gardou 7bbfde2b49 [KMTESTS] Add more tests for CcCopyRead 2020-12-08 11:48:00 +01:00
Jérôme Gardou 08cf040dd5 [KMTESTS] Add more tests for CcCopyWrite 2020-12-08 11:48:00 +01:00
Thomas Faber dab6b26a57
[KMTESTS:HAL] Add a test for HalQueryAMLIIllegalIOPortAddresses. CORE-17359 2020-11-07 11:36:14 +01:00
Thomas Faber 4bc7e664fb
[KMTESTS:RTL] Add initial range list tests. CORE-6372 2020-08-15 21:31:32 +02:00
Thomas Faber 1481df94ab
[KMTESTS:EX] Use stricter checks for the UUID returned from ExUuidCreate.
* Check the entire version field
* Check the variant field
* Accept RPC_NT_UUID_LOCAL_ONLY, which is sometimes returned by Windows
* Repeat the test to show that these things happen every time

Based on a patch by Serge Gautherie.
2020-06-27 10:13:51 +02:00
Serge Gautherie cac13bcd7f
[KMTESTS:OB] ObTypes: Support latest NT5.2 results
Update Port and WaitablePort values.
2020-06-18 10:09:37 +02:00
Victor Perevertkin 7e069ccdb2
[CMAKE] Replace custom functions to built-in ones
add_target_compile_definitions -> target_compile_definitions
add_target_compile_flags -> target_compile_options
add_target_include_directories -> target_include_directories
2020-04-16 15:59:38 +03:00
Thomas Faber f027384e48
[KMTEST] Delete special-purpose driver services on unload. ROSTESTS-263
Based on a patch by Serge Gautherie.
2020-03-28 20:33:43 +01:00
Timo Kreuzer 42d2d5ec9c [ROSTESTS] fix x64 build and fix/disable warnings 2020-01-26 11:50:37 +01:00
Serge Gautherie 0f92924a99 [REACTOS] Use explicit StringCb*W() (#2069) 2019-11-21 00:47:06 +01:00
Thomas Faber acfea670fe
[KMTESTS:EX] Try to avoid some spurious test failures.
E.g. https://reactos.org/testman/detail.php?id=43906459&prev=43889679

This test depends on the timeout to be long enough for another thread to
actually have started waiting, which may take longer than 10ms under load.
2019-09-08 08:06:51 +02:00