Commit graph

57 commits

Author SHA1 Message Date
Thomas Faber 8550143bab [KMTESTS:RTL]
- Add a test for RtlWalkFrameChain and RtlCaptureStackBackTrace

svn path=/trunk/; revision=74489
2017-05-06 15:29:56 +00:00
Thomas Faber 42ce59cdd2 [KMTESTS]
- Complete IRPs with STATUS_INVALID_DEVICE_REQUEST by default.
CORE-12295 #resolve

svn path=/trunk/; revision=73153
2016-11-06 15:26:39 +00:00
Hermès Bélusca-Maïto 15d77be6fd [NTOS]
- accesschk.c: Remove redundant SepAccessCheck/SepAccessCheckEx pair of private functions; instead just rename SepAccessCheckEx into SepAccessCheck and use it directly in the code. NOTE: SepAccessCheck is *incomplete* (in particular it doesn't retrieve the information needed to initialize the 'Privileges' parameter).
- sid.c: Comments formatting fix.
- token.c:
  * Finish to implement SeQueryInformationToken . This function is really the same as NtQueryInformationToken but without all the stuff needed for user-mode buffer access protection.
  * Some code simplifications in NtQueryInformationToken.
  I need this to fix a "FIXME: Use SeQueryInformationToken" in some code I'm also fixing (& commit later).

[NDK]: Fix parameter types and add annotations to RtlCopySidAndAttributesArray.

[KMTESTS:NTOS_SE]
- Reenable the 'SeQueryInfoToken' test.
- Show that SeQueryInformationToken doesn't support 4 token information classes, which are supported only by NtQueryInformationToken.
- Fix calling of SeAccessCheck. In particular the 'Privileges' parameter is not allocated by the caller, but instead is allocated by SeAccessCheck *and* returned to the caller (who then must free the buffer using SeFreePrivileges). This fixes the encountered BSODs that leaded to disabling preventively the test in r59178.
- Minor code cleaning.

svn path=/trunk/; revision=73122
2016-11-04 17:52:32 +00:00
Thomas Faber 14a0d23f4c [KMTESTS:OB]
- Add a test for the NT directory structure's ACLs
CORE-9184

svn path=/trunk/; revision=72976
2016-10-17 09:28:15 +00:00
Dmitry Chapyshev 1a8c432587 [KMTEST]
- Implement tests for RtlIsValidOemCharacter function

svn path=/trunk/; revision=72579
2016-09-04 22:15:53 +00:00
Thomas Faber 31ac33cd43 [KMTESTS]
- Addendum to r71770
CORE-11509

svn path=/trunk/; revision=71773
2016-07-03 09:23:37 +00:00
Pierre Schweitzer ef0b98d6fb [KMTESTS]
- Define a new macro function KmtGetSystemOrEmbeddedRoutineAddress() which is to be used to get a function address from Mm if it exists system-wide or to fallback to embedded function if it doesn't exist
- Use this mechanism to add tests for the newly implemented FsRtlRemoveDotsFromPath() which is Vista+.

That allows, with a single build (and thus, same binaries), testing a function in ReactOS and in Windows. 

svn path=/trunk/; revision=71046
2016-03-25 18:53:43 +00:00
Thomas Faber 7a677edbeb [KMTESTS:FSRTL]
- Add tests for FsRtlDissectName/FsRtlDissectDbcs and FsRtlIsFatDbcsLegal/FsRtlIsHpfsDbcsLegal

svn path=/trunk/; revision=70226
2015-12-01 14:22:17 +00:00
Thomas Faber 8160fdc383 [KMTESTS:IO]
- Add a test verifying that opening a file using different parent directories still yields handles to the same file
CORE-10483

svn path=/trunk/; revision=69877
2015-11-12 12:55:26 +00:00
Thomas Faber 1ac16d7595 [KMTESTS]
- Sssh, these tests are secret

svn path=/trunk/; revision=69567
2015-10-17 15:56:52 +00:00
Thomas Faber 8661787353 [KMTESTS:OB]
- Add ObHandle test that verifies a couple ZwDuplicateObject behaviors 

svn path=/trunk/; revision=69566
2015-10-17 15:50:25 +00:00
Thomas Faber 073a2904ca [KMTESTS:PO]
- Add a test for PoRequestPowerIrp

svn path=/trunk/; revision=69499
2015-10-11 17:06:14 +00:00
Pierre Schweitzer 3ee5af9d50 [KMTESTS:OB]
Add a test dedicated to Stefan.

svn path=/trunk/; revision=69398
2015-09-28 12:25:38 +00:00
Thomas Faber 567c098f48 [KMTESTS:CM]
- Add a test for registry hive security descriptors

svn path=/trunk/; revision=69265
2015-09-18 11:06:11 +00:00
Thomas Faber 62d6fa7706 [KMTESTS:MM]
- Add a test for MmAllocateMappingAddress/MmMapLockedPagesWithReservedMapping
CORE-10147

svn path=/trunk/; revision=69168
2015-09-10 09:58:02 +00:00
Thomas Faber eb33bb164d [KMTESTS:MM]
- Add a test for MmAllocatePagesForMdl

svn path=/trunk/; revision=68271
2015-06-26 07:31:01 +00:00
Pierre Schweitzer 23a0889551 [KMTEST]
Enable FsRtlTunnel tests.
They all pass in ReactOS now.

CORE-7272

svn path=/trunk/; revision=67887
2015-05-24 17:42:52 +00:00
Thomas Faber 054e41ecad [KMTEST]
- Add TESTENTRY_NO_READONLY_DEVICE and TESTENTRY_BUFFERED_IO_DEVICE flags for standalone drivers

svn path=/trunk/; revision=67486
2015-05-01 10:52:37 +00:00
Thomas Faber 49bb368ddc [KMTESTS]
- Add a test showing RtlUpcaseUnicodeString behavior with zero-length strings
- Run all test cases against FsRtlIsNameInExpressionTest on checked builds, only the Dbcs version asserts
CORE-9254

svn path=/trunk/; revision=66479
2015-02-27 22:42:35 +00:00
Thomas Faber e6c56afe8c [KMTESTS]
- Add KmtGetSystemRoutineAddress and use it to avoid importing functions that are not available in some versions of Windows. This allows running kmtests on Windows XP SP3 (and probably Server 2003 SP0/SP2). Note that failures on XP are still not valid bugs, this is purely for convenience!  Dedicated to Jérôme.
ROSTESTS-150

svn path=/trunk/; revision=66281
2015-02-15 10:23:21 +00:00
Thomas Faber bc8701e5b7 [KMTESTS:KE]
- Enable KeSpinLock test that apparently never made it into testlist.c for some reason?

svn path=/trunk/; revision=66277
2015-02-15 09:29:32 +00:00
Pierre Schweitzer fc3c9fbab5 [KMTEST]
Close your eyes.
Really do it! I see you kept them open...
There are closed now?
OK... All fine.
You can open them again.
Nothing happened.
Source code always used to be like that. A commented was never left by mistake in it.
Never, ok? 

svn path=/trunk/; revision=65402
2014-11-14 21:01:45 +00:00
Pierre Schweitzer 093fafbb5e [KMTEST]
Reenable tests for MCBs. They got fixed by Hervé in r65398.

ROSTESTS-106 #resolve #comment Fixed by Hervé in r65398. Thanks!

svn path=/trunk/; revision=65401
2014-11-14 19:43:39 +00:00
Thomas Faber 418629f6a9 [KMTESTS:SE]
- Add a test for SeAssignSecurity[Ex]
CORE-8745

svn path=/trunk/; revision=65258
2014-11-04 22:42:15 +00:00
Pierre Schweitzer e620c729eb [KMTESTS:IO]
Add tests for IoCreateFile for target directory open.
They will fail on ReactOS.

svn path=/trunk/; revision=62934
2014-04-23 19:44:03 +00:00
Pierre Schweitzer 4d1dfdbc1b [KMTESTS:NPFS]
Add more tests for file info

Tested by Thomas.

CORE-7451

svn path=/trunk/; revision=62742
2014-04-13 16:16:30 +00:00
Pierre Schweitzer 77ef29ad79 [KMTESTS:NPFS]
Add tests for volume information query. Could be completed for size, device, full size and attributes query.
This is used to validate changes made in r62663.

Tested by Thomas.

CORE-7451

svn path=/trunk/; revision=62717
2014-04-12 12:06:47 +00:00
Thomas Faber 08df30bc8b [KMTESTS:NPFS]
- Add some (pretty incomplete) tests for NPFS Create, Connect and Read/Write operations
CORE-7451

svn path=/trunk/; revision=62695
2014-04-09 18:00:33 +00:00
Thomas Faber a42481108c [KMTEST:IO]
- Disable IoRegisterDeviceInterface test, since it crashes on Windows
- Add test showing that IoRegisterPlugPlayNotification's callback receives the full path to the symbolic link (this was fixed in r62249)

svn path=/trunk/; revision=62553
2014-03-23 17:24:10 +00:00
Thomas Faber d0205eba98 [KMTESTS:RTL]
- Add RtlIntSafe test for ntintsafe.h functions
CORE-7578

svn path=/trunk/; revision=60991
2013-11-14 09:19:16 +00:00
Amine Khaldi bd779c1be5 [KMTEST_DRV]
* Move the DeviceExtension related asserts into a DBG block.

svn path=/trunk/; revision=60665
2013-10-14 16:35:35 +00:00
Thomas Faber 3c7c94a174 [COMMENTS]
- Consistent email address is consistent.

svn path=/trunk/; revision=60631
2013-10-12 16:05:54 +00:00
Thomas Faber 2d6aa7e6da [KMTESTS:RTL]
- Add test for REG_MULTI_SZ in RtlQueryRegistryValues

svn path=/trunk/; revision=59544
2013-07-20 19:33:13 +00:00
Thomas Faber 3b4a05175b [KMTESTS]
- Skip FsRtlMcb again to make testbot happy

svn path=/trunk/; revision=59351
2013-06-29 05:38:37 +00:00
Sylvain Petreolle 63e0c4e9d4 [KMTESTS:FSRTL]
Enable FsRtlMcb tests.


svn path=/trunk/; revision=59349
2013-06-28 19:25:37 +00:00
Aleksey Bragin 881c40e133 [KMTEST]
- Implement simple KeDeviceQueue test by Moscow State Technical University students. Improvements are welcome.

svn path=/trunk/; revision=59188
2013-06-08 10:19:26 +00:00
Aleksey Bragin 73f6b44f85 [KMTEST]
- Add tests for SeQueryInformationToken NTAPI. By Moscow State Technical University students Constantine Belev, Denis Grishin, Egor Sinitsyn.
- Disabled from testbot because they bugcheck ReactOS (unimplemented functions bugcheck). Work in progress...

svn path=/trunk/; revision=59178
2013-06-05 23:16:14 +00:00
Aleksey Bragin 4b891e910a [KMTEST]
- Add tests for FsRtl Tunnel Cache APIs. By Moscow State Technical University students Arseny Ashuha, Marina Volosnikova and Denis Petkevich.
- Disabled from testbot because they bugcheck ReactOS (unimplemented functions bugcheck).

svn path=/trunk/; revision=59177
2013-06-05 22:50:57 +00:00
Thomas Faber 76a1dccfe2 [KMTESTS:MM]
- Add tests for ZwAllocateVirtualMemory, ZwCreateSection, ZwMapViewOfSection. Patch by Nikolay Borisov (nib9 at aber dot ac dot uk).
- Some tests are currently skipped because they crash or assert on ROS: See ROSTESTS-107, ROSTESTS-108, ROSTESTS-109, ROSTESTS-110.
ROSTESTS-105 #resolve

svn path=/trunk/; revision=58874
2013-04-27 18:33:50 +00:00
Thomas Faber 4c309ccd7f [KMTESTS]
- Implement a mechanism for kmtests to retrieve information from user-mode. Patch by Nikolay Borisov (nib9 at aber dot ac dot uk).
- Currently supported function: QueryVirtualMemory
ROSTESTS-96 #resolve

svn path=/trunk/; revision=58873
2013-04-27 18:18:17 +00:00
Thomas Faber ab9ec0bd8c [KMTESTS:FSRTL]
- Enable running FsRtlMcb by hand

svn path=/trunk/; revision=58859
2013-04-26 09:31:12 +00:00
Pierre Schweitzer 43ee5e7b98 [NTOSKRNL]
Disable FsRtlMcb for the moment, as they crash, don't provide any useful and prevent the VBox testbot to properly run 

svn path=/trunk/; revision=58858
2013-04-26 06:47:42 +00:00
Pierre Schweitzer 5d683f8f8f [KMTESTS:FSRTL]
Add tests for testing Large MCBs on Aleksey's request.
Currently, they fail (and even crash) on ReactOS.
Aleksey promised a bugfix!

svn path=/trunk/; revision=58838
2013-04-23 21:34:59 +00:00
Thomas Faber 76b9a203f2 [KMTESTS]
- Add a few more tests for FindFirstFile
- Silence kmtest debugging

svn path=/trunk/; revision=58819
2013-04-21 20:47:52 +00:00
Thomas Faber a3ee37624f [KMTESTS]
- Add KmtSendWStringToDriver to easily send unicode strings to special-purpose drivers
- Add TESTENTRY_NO_EXCLUSIVE_DEVICE flag for non-exclusive devices in special-purpose drivers
ROSTESTS-104

svn path=/trunk/; revision=58812
2013-04-21 18:53:51 +00:00
Amine Khaldi c71475e3bb * Addendum to r58214.
svn path=/trunk/; revision=58290
2013-02-05 17:54:22 +00:00
Thomas Faber f00cc3de89 [KMTESTS:KE]
- Add test for KeInitializeMutant vs KeInitializeMutex. Dedicated to Mike.

svn path=/trunk/; revision=57408
2012-09-28 07:09:08 +00:00
Thomas Faber 46029920aa [KMTEST:IO]
- Add a test for IoCreateNotificationEvent/IoCreateSynchronizationEvent

svn path=/trunk/; revision=57359
2012-09-21 22:12:47 +00:00
Thomas Faber 4cef479813 [KMTESTS]
- Add minimal ExCallback and PsNotify tests
See issue #7120 for more details.

svn path=/trunk/; revision=56734
2012-06-14 18:43:32 +00:00
Thomas Faber 2ab0757b32 [KMTESTS]
- Fix 64 bit warnings
- Do not force assembly syntax on GCC in ExInterlocked

svn path=/trunk/; revision=56456
2012-05-01 09:13:19 +00:00