Commit graph

125 commits

Author SHA1 Message Date
Thomas Faber 64379e8f3a [NTOS:MM]
- Show that PAGE_NOCACHE also works for image and data sections
- Show that *MapViewOfSection returns user space addresses
CORE-9808

svn path=/trunk/; revision=68352
2015-07-05 19:44:05 +00:00
Thomas Faber 7346aece52 [KMTESTS:MM]
- Add a test for \Device\PhysicalMemory sections, which shows that we have trouble with PAGE_NOCACHE.
CORE-9808

svn path=/trunk/; revision=68351
2015-07-05 19:17:50 +00:00
Thomas Faber df14063ebc [KMTESTS:MM]
- Fix some massive NP pool leakage.

svn path=/trunk/; revision=68318
2015-06-30 10:54:41 +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 d9c71ea288 [KMTEST]
Leak less memory.

svn path=/trunk/; revision=67888
2015-05-24 18:14:49 +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
Pierre Schweitzer 0d763e60fb [KMTEST]
Don't attempt to allocate null-size buffer when copying empty string.

Note to next generations students: test your code and DON'T LEAK MEMORY!!!!
It still leaks atm, will have a look later on.
Note to Mr Bragin, beloved ReactOS Project Coordinator: did you actually reviewed your students work?

CORE-7272

svn path=/trunk/; revision=67885
2015-05-24 17:31:49 +00:00
Timo Kreuzer 079df38c99 [KMTEST]
Hey Arch, if you turn warnings into errors, make sure to fix the warnings before!

svn path=/trunk/; revision=67626
2015-05-10 17:37:54 +00:00
Thomas Faber 68defa9dd4 [KMTESTS:IO]
- Also test write operations in IoReadWrite
- Add some nonzero success statuses
CORE-9624

svn path=/trunk/; revision=67493
2015-05-01 12:50:12 +00:00
Thomas Faber f1b1a2086e [KMTESTS:IO]
- Fix GCC build

svn path=/trunk/; revision=67488
2015-05-01 11:07:40 +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
Timo Kreuzer 6c366758de [KMTEST]
Remove now obsolete definitions

svn path=/trunk/; revision=67174
2015-04-12 12:42:50 +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 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
Jérôme Gardou fcddf62f18 [KMTEST/TCPIP]
- Add tests checking for TDI_CONNECT behaviour.

svn path=/trunk/; revision=66180
2015-02-06 10:49:04 +00:00
Jérôme Gardou 750f99929f [KMTEST/TCPIP]
- Adjust test data to better reflect w2k3 behaviour.
Thanks Amine for the tests.

svn path=/trunk/; revision=65551
2014-12-02 18:53:45 +00:00
Jérôme Gardou d85b6d69f8 [KMTESTS/TCPIP]
- Fix MSVC build.

svn path=/trunk/; revision=65550
2014-12-02 18:38:32 +00:00
Jérôme Gardou e07183a73b [KMTESTS]
- Fix typo

svn path=/trunk/; revision=65548
2014-12-02 18:08:33 +00:00
Jérôme Gardou a928f15f42 [KMTEST]
- Add some tests for tcpip.sys TDI capabilities (for now, TDI_PROVIDER_INFO)

svn path=/trunk/; revision=65546
2014-12-02 18:06:48 +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
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
Amine Khaldi c0e495f046 [CMAKE]
* Addendum to r64795.
* Also remove unneeded wine linking and ntdll importing.
* Remove redundant defines.

svn path=/trunk/; revision=64796
2014-10-17 23:29:24 +00:00
Timo Kreuzer e854a2795e [KMTEST]
Use CONST UCHAR * instead of PCUCHAR (which is only defined in ntdef.h, not in winnt.h)

svn path=/trunk/; revision=64494
2014-10-03 12:07:30 +00:00
Thomas Faber f2bc2ef5ed [KMTESTS:IO]
- Test more fields of DRIVER_OBJECT
CORE-8566

svn path=/trunk/; revision=64342
2014-09-27 14:56:22 +00:00
Jérôme Gardou 9aff965362 [KMTESTS]
- Test what happens to the 'base' of memory allocated with ZwAllocateVirtualMemory
 - Fix some tests according to w2k3sp2 behaviour.
Thanks Amine for testing ;-)

svn path=/trunk/; revision=64028
2014-09-01 22:41:36 +00:00
Thomas Faber 5c1f39d5c8 [KMTESTS:KE]
- Increase timeout in KeGuardedMutex test to avoid flakiness

svn path=/trunk/; revision=64002
2014-08-31 10:27:35 +00:00
Thomas Faber 42f34d3788 [KMTESTS:RTL]
- Fix a stack buffer overflow in the RtlMemory test

svn path=/trunk/; revision=63870
2014-08-12 07:47:08 +00:00
Timo Kreuzer bccd8b7aea [KMTEST]
Revert the DDK compatibility hack and apply a real fix. I kept the hack for NDK exports, we should consider changing them as well for consistency reasons.

svn path=/trunk/; revision=63268
2014-05-12 23:36:05 +00:00
Timo Kreuzer be359827c5 [KMTEST]
Add a temp hack that allows to compile kmtest_drv with either the current incompatible object type data imports or with the fixed ones

svn path=/trunk/; revision=63222
2014-05-10 17:19:53 +00:00
Pierre Schweitzer ebd14e9811 [KMTESTS:IO]
Complete a bit more IoCreateFile tests, taking into account relatives.

A side note (related to first commit - actually to these test as a whole):
It's pretty unfortunate that they work (on my Windows 2K3). They just expose
a totally different behavior than expected reading R. Nagar (pp 478 - 479).
The experimental behavior also being different from behavior expected from IFS
samples provided by MS.
Perhaps some magic in the callpath between IopParseDevice return and IoCreateFile return?

svn path=/trunk/; revision=62960
2014-04-24 20:50:32 +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 502ebc94af [KMTESTS:NPFS]
--MagicValues;
CORE-7451

svn path=/trunk/; revision=62723
2014-04-12 21:12:26 +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
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 ef678077bf [KMTESTS]
- Disable Example test since it has intentional failures. Dedicated to Christoph

svn path=/trunk/; revision=62265
2014-02-20 19:26:24 +00:00
Thomas Faber 1485fd938e [KMTESTS:RTL]
- Fix a warning

svn path=/trunk/; revision=61099
2013-11-26 14:26:31 +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
Thomas Faber 5bb77216c8 [KMTESTS:EX]
- Fix incorrect sizeof usage. CID 1102449, 1102451

svn path=/trunk/; revision=60743
2013-10-24 19:33:17 +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
Amine Khaldi cdb62c6244 * Addendum to r60650.
CORE-7471 #resolve

svn path=/trunk/; revision=60653
2013-10-13 23:12:09 +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