Commit graph

159 commits

Author SHA1 Message Date
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
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 3aad455588 [KMTESTS:EX]
- Add test for ExAllocatePoolWithQuotaTag

svn path=/trunk/; revision=60174
2013-09-16 18:15:02 +00:00
Amine Khaldi 3a0cb73e64 [KMTESTS]
* Run this block now that guard pages are supported.
ROSTESTS-107 #resolve

svn path=/trunk/; revision=59953
2013-09-01 17:55:00 +00:00
Aleksey Bragin 26c0debfa3 [KMTESTS]
- Beautify the source code a little. Also improve english in debug prints.

svn path=/trunk/; revision=59552
2013-07-22 12:11:38 +00:00
Thomas Faber 95ba3e574b [KMTESTS:SE]
- Remove broken prototypes

svn path=/trunk/; revision=59546
2013-07-20 19:40:32 +00:00
Thomas Faber 517239e69e [KMTEST]
- Fix platform includes

svn path=/trunk/; revision=59545
2013-07-20 19:36:41 +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 e241bb486e [KMTESTS:RTL]
- Fix a warning

svn path=/trunk/; revision=59463
2013-07-13 06:31:13 +00:00
Thomas Faber 1c1f89cd6b [KMTESTS:MM]
- Gracefully handle file open failure in ZwCreateSection test. Patch by Aleksandar Andrejevic.
ROSTESTS-115 #resolve

svn path=/trunk/; revision=59362
2013-06-29 13:10:30 +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 e329b10e5c [KMTESTS/FSRTL]
- Add all runs dumping to aid in development.
- Do not try to add a mapping run with 0 LBN. Zero and negative LBNs are forbidden.
- Rework other tests to work as expected (plumb a hole).

svn path=/trunk/; revision=59347
2013-06-27 08:32:46 +00:00
Aleksey Bragin 015d9d3a12 [KMTEST]
- Fix variable declaration placement.

svn path=/trunk/; revision=59189
2013-06-08 10:31:39 +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 20770ec6a1 [KMTEST]
- Fix variables declarations, and don't mix 1/0 and TRUE/FALSE. Boolean was invented for that.

svn path=/trunk/; revision=59182
2013-06-06 21:54:00 +00:00
Aleksey Bragin 192f898958 [KMTEST]
- Constantine Belev: Fix a few bugs in the SeQueryInfoToken test. Now it does not crash in ReactOS anymore.

svn path=/trunk/; revision=59181
2013-06-06 09:44:34 +00:00
Aleksey Bragin 2b03ca813e [KMTEST]
- Fix formatting of FsRtlTunnel.c
- Add proper header.

svn path=/trunk/; revision=59180
2013-06-05 23:25:02 +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
Pierre Schweitzer bfe3492dc4 [KMTESTS:FSRTL]
Add comments

svn path=/trunk/; revision=58962
2013-05-06 11:24:55 +00:00
Pierre Schweitzer c97cdd5dd9 [KMTESTS:FSRTL]
Add more tests for MCBs

svn path=/trunk/; revision=58961
2013-05-06 08:10:53 +00:00
Thomas Faber 5cd67c3c36 [KMTESTS:MM]
- Fix 64-bit warnings. Patch by Nikolay Borisov.
ROSTESTS-112 #resolve

svn path=/trunk/; revision=58940
2013-05-05 12:18:49 +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 c568d4fd8b [KMTESTS:FSRTL]
- Rework FsRtlExpression test to be more maintainable by using a table. Patch by Víctor Martínez Calvo, a few comments by me.
CORE-7108 #resolve

svn path=/trunk/; revision=58864
2013-04-27 07:44:28 +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 f6d5d2eb5d [KMTESTS:FSRTL]
Fix copy/paste mistakes

svn path=/trunk/; revision=58849
2013-04-25 10:08:05 +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
Pierre Schweitzer 2b47f60899 [KMTEST:FSRTL]
Add a test that matches rosautotest.exe behavior

svn path=/trunk/; revision=58826
2013-04-22 06:49:01 +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 3e16da2604 [KMTESTS]
- Add a kernel32 test (I know right) to check how FindFirstFile* modifies wildcards
ROSTESTS-104 #resolve

svn path=/trunk/; revision=58813
2013-04-21 19:00:10 +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
Pierre Schweitzer bc281af13f [KMTESTS:FSRTL]
Add more tests for FsRtlIs*InExpression()
Tested on w2k3 by Thomas

svn path=/trunk/; revision=58801
2013-04-21 13:47:54 +00:00
Pierre Schweitzer 301f9552c0 [KMTEST:FSRTL]
Fix assertion failure on checked builds

svn path=/trunk/; revision=58789
2013-04-20 12:54:38 +00:00
Pierre Schweitzer 13bb26cfcf [KMTEST:FSRTL]
Add more tests for FsRtlIsNameInExpression() by Victor Martinez
Also add these tests for FsRtlIsDbcsInExpression()
See CORE-5125 for more information

svn path=/trunk/; revision=58788
2013-04-20 12:24:57 +00:00
Amine Khaldi c71475e3bb * Addendum to r58214.
svn path=/trunk/; revision=58290
2013-02-05 17:54:22 +00:00
Amine Khaldi 9e87af1372 [CMAKE]
* Remove unneeded set_rc_compiler.

svn path=/trunk/; revision=57965
2012-12-22 10:46:37 +00:00
Thomas Faber c18b6ae104 [KMTEST:KE]
- Show that Mutexes disable APCs when acquired, while Mutants don't

svn path=/trunk/; revision=57469
2012-10-03 20:52:33 +00:00
Thomas Faber 2255bdd7f4 [KMTESTS]
- Fix GCC build

svn path=/trunk/; revision=57409
2012-09-28 07:13:26 +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
Mike Nordell 3248cce92e Disable crashing usermode test. See CORE-6640.
svn path=/trunk/; revision=57309
2012-09-15 19:39:14 +00:00
Thomas Faber 8003401991 [KMTESTS:EX]
- Make hard-coded calling convention exceptions in ExInterlocked compatible with GCC 4.7, and add the corresponding TODO about how ugly this is

svn path=/trunk/; revision=57166
2012-08-26 12:06:45 +00:00
Timo Kreuzer 726210791f [KMTEST]
Include strnlen.c and wcsnlen.c in kmtest_printf (needed for upcoming change)

svn path=/trunk/; revision=56826
2012-07-04 18:51:34 +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 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
Amine Khaldi 04de8061da [KMTEST_DRV]
* Link to chkstk.

svn path=/trunk/; revision=56559
2012-05-10 13:05:37 +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 0515cd1d2e [KMTESTS/RTL]
- Add a small RtlException test, mainly to check that a stack overflow really throws STATUS_STACK_OVERFLOW, not STATUS_ACCESS_VIOLATION.

svn path=/trunk/; revision=56434
2012-04-27 08:36:58 +00:00
Thomas Faber 1a908c8114 [KMTESTS/OB]
- Add ObTypes test that checks all object types that should be present on Windows

svn path=/trunk/; revision=56379
2012-04-21 09:06:54 +00:00
Thomas Faber ea61322952 [KMTESTS/EX] - Fix GCC build
svn path=/trunk/; revision=56155
2012-03-15 11:49:09 +00:00
Thomas Faber d0231c12c2 [KMTESTS/EX]
- Work around compiler-specific false positives in ExInterlocked
- Disable broken ExPools tests

svn path=/trunk/; revision=56154
2012-03-15 11:46:30 +00:00
Pierre Schweitzer 9fbfe075cb [KMTEST]
6 more tests

svn path=/trunk/; revision=56148
2012-03-14 13:53:22 +00:00
Pierre Schweitzer fa63f5ff1c [KMTEST]
Add missing EOLs

svn path=/trunk/; revision=56147
2012-03-14 10:04:07 +00:00
Pierre Schweitzer 5503fdf3bd [KMTEST]
Finally, add more tests for extra wildcards. They were untested before.
There should be several failures

svn path=/trunk/; revision=56145
2012-03-14 09:43:16 +00:00
Pierre Schweitzer 3f4382482e [KMTEST]
Only if-out the proper tests on checked builds. This should reveal the failing tests.

svn path=/trunk/; revision=56142
2012-03-13 21:24:11 +00:00
Pierre Schweitzer fc00f17c66 [KMTEST]
Add a few more tests. Two should fail on ReactOS

svn path=/trunk/; revision=56141
2012-03-13 21:07:55 +00:00
Amine Khaldi 7d3f5052d0 * Addendum to r55855.
svn path=/trunk/; revision=55856
2012-02-25 17:23:58 +00:00
Thomas Faber 74a51ae888 [KMTESTS]
- Fix IRP handling, and some 64 bit warnings

svn path=/trunk/; revision=55031
2012-01-20 23:12:44 +00:00
Thomas Faber e661f24f8a [KMTESTS/KE]
- Do not check IRQLs above HIGH_LEVEL. That's not very useful anyway. Fixes hang in kmtest:KeIrql.

svn path=/trunk/; revision=54363
2011-11-12 14:49:14 +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 218b87ee29 [KMTESTS]
- Fix AMD64 build

svn path=/trunk/; revision=54353
2011-11-11 23:04:26 +00:00
Thomas Faber b2d43ccd3c [KMTESTS/RTL]
- Add a test for RtlFindCharInUnicodeString

svn path=/trunk/; revision=54090
2011-10-12 11:25:34 +00:00