Commit graph

22 commits

Author SHA1 Message Date
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 abb2dff020 [KMTESTS:IO]
- Add a test for the interaction between NtReadFile and a file system driver
CORE-9624

svn path=/trunk/; revision=67487
2015-05-01 11:03:21 +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 c845f97fbf [KMTESTS:RTL]
- Add some simple tests for RtlRaiseStatus to the RtlException test
- Add missing volatile in (disabled) stack overflow test that caused an infinite loop on GCC builds
CORE-8773

svn path=/trunk/; revision=66351
2015-02-19 12:55:57 +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 902e8bb68e [KMTESTS]
- Move out definitions for user/kernel test utility functions into their own header (still not pretty, but at least the one header won't get as huge
- Make KmtStartThread/KmtFinishThread available to all tests

svn path=/trunk/; revision=65256
2014-11-04 20:55:16 +00:00
Pierre Schweitzer ffd100f622 [KMTESTS:NPFS]
- Add more tests for volume info
- Fix previous tests
- Add two helper macros

Tested by Thomas.

CORE-7451

svn path=/trunk/; revision=62721
2014-04-12 18:37:44 +00:00
Thomas Faber 3c7c94a174 [COMMENTS]
- Consistent email address is consistent.

svn path=/trunk/; revision=60631
2013-10-12 16:05:54 +00:00
Hermès Bélusca-Maïto 2c7388a0b1 [KMTESTS]
No need now to declare a NTSTATUS ExceptionStatus; variable to be able to use KmtStartSeh() / KmtEndSeh() macros; this is done automagically.

svn path=/trunk/; revision=60320
2013-09-22 19:28:21 +00:00
Thomas Faber 4dcd167f3e [KMTESTS:EX]
- Test that quota allocations keep their QUOTA_POOL_MASK bit in POOL_HEADER

svn path=/trunk/; revision=60175
2013-09-16 19:02:28 +00:00
Thomas Faber 517239e69e [KMTEST]
- Fix platform includes

svn path=/trunk/; revision=59545
2013-07-20 19:36:41 +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 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 3acf3b9507 [KMTESTS]
- Centralize frequently used macros

svn path=/trunk/; revision=56733
2012-06-14 17:48:14 +00:00
Thomas Faber 5821325f17 [KMTESTS]
- Return a boolean from ok()
- Add KmtGetPoolTag function to allow verifying pool tags used for allocations

svn path=/trunk/; revision=56730
2012-06-13 21:56:54 +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
Thomas Faber ea9cf8c55d [KMTEST]
- Fix GCC build

svn path=/trunk/; revision=56435
2012-04-27 08:50:57 +00:00
Thomas Faber 2bc2e85140 [KMTESTS]
- Fix some typos in previous commit
- Make the driver object accessible to tests

svn path=/trunk/; revision=54355
2011-11-12 00:21:57 +00:00
Thomas Faber 2b17fa159d [KMTESTS]
- Add support for guarded allocations, that can be used to detect buffer overruns
- Add GuardedMemory example test
- Add MmSection test with some basic parameter checks for MmCreateSection
- Fix some x64 build problems
- Update readme

svn path=/trunk/; revision=53687
2011-09-11 11:22:00 +00:00
Thomas Faber 454f222ade [ROSTESTS]
- Merge the Kernel Mode Test Suite Google Summer of Code project
- Happy testing, everyone ;)

svn path=/trunk/; revision=53671
2011-09-10 11:41:33 +00:00