Commit graph

30 commits

Author SHA1 Message Date
Thomas Faber 425f097968 [KMTESTS:IO]
- Avoid a crash in IoFilesystem on Windows when using a free kernel with ntfs. Querying FileAllInformation with any size below sizeof(FILE_ALL_INFORMATION) is considered illegal, so only do it on checked builds (which have a size check).

svn path=/trunk/; revision=73921
2017-02-26 11:31:51 +00:00
Colin Finck da200b3a2c [ROSTESTS]
- Add a function "add_rostests_file" that calls both add_cd_file() and install() accordingly for regression tests.
  Use this function everywhere in rostests where add_cd_file() was used previously. This puts tests always in the right place on CD and also generates proper installation rules for them.
- Add a custom target "rostests_install" that performs an "install" on all rostests components.

This finally gives us a convenient and reliable way to copy all regression tests and their dependencies into a single directory (specified by the ROSTESTS_INSTALL environment variable).
Will be used on the WHS-Testbot to let it finally run each and every test.

CORE-12401
ONLINE-441

svn path=/trunk/; revision=73533
2017-01-13 09:24:15 +00:00
Thomas Faber 762bec692a [KMTESTS]
- Add a missing newline

svn path=/trunk/; revision=73445
2016-12-10 11:59:41 +00:00
Thomas Faber ba1509ef9e [KMTESTS:IO]
- Add a test case for trying to open a file "inside" a file to IoFilesystem
ROSTESTS-135

svn path=/trunk/; revision=73058
2016-10-29 11:20:58 +00:00
Thomas Faber 6031bd0162 [KMTESTS:IO]
- Add a test for the maximum data length for MDLs
CORE-12132

svn path=/trunk/; revision=72964
2016-10-13 12:28:01 +00:00
Thomas Faber 4cf4eebb95 [KMTESTS:IO]
- Add more path open tests
- Also test creating files
CORE-10483

svn path=/trunk/; revision=70209
2015-11-29 19:11:35 +00:00
Thomas Faber 187db82af7 [KMTESTS:IO]
- Add a test for FileAllInformation

svn path=/trunk/; revision=69897
2015-11-16 13:53:03 +00:00
Thomas Faber 57dd4b34c7 [KMTESTS:IO]
- Add a test trying assorted path variations to open files
CORE-10483

svn path=/trunk/; revision=69878
2015-11-12 13:13:54 +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 28c1e663f3 [KMTESTS:IO]
- Add some basic parameter tests for IoSetDeviceInterfaceState
CORE-9456

svn path=/trunk/; revision=69722
2015-10-27 12:14:10 +00:00
Pierre Schweitzer 5dc58d234a [KMTESTS:IO]
[KMTESTS:OB]
Simplify kernel mode thread creation

svn path=/trunk/; revision=69417
2015-09-29 18:43:35 +00:00
Pierre Schweitzer 549ecc5195 [KMTESTS:IO]
Add more tests for IoCreateFile(), this time purely dealing with symlinks reparse points.
They won't run on ReactOS (obviously) as we don't have RW NTFS support.

On Windows, they show interesting results....
With Windows 2003, creating the symlink is allowed and works, but then Windows is totally unable to deal with it and keeps complaining about an unhandled reparse tag.
The only way to open it is to open the reparse point itself. Not that working symlinks... Not sure which part is not able to handle the said reparse tag. NTFS? Io?
With Windows Vista+, it just works fine. Symlink is created & functionnal.

Broken logic!

svn path=/trunk/; revision=69353
2015-09-25 15:57:28 +00:00
Pierre Schweitzer f44942d42f [KMTESTS:IO]
- Properly free handles in driver (spotted by Thomas)
- Remove dead code in driver (spotted by Thomas)
- Send an IOCTL to stop on symlinks to allow more precise tests

svn path=/trunk/; revision=69336
2015-09-23 21:30:22 +00:00
Pierre Schweitzer 9e06c66b38 [KMTESTS:IO]
Extend the IoCreateFile tests with two parts tests.
First part properly checks for opening/reparse handling on mount points (and ideally on symlinks, see below).
The other part checks for proper handling of the IO_STOP_ON_SYMLINK parameter.

Regarding symlink, I'm clearly not convinced that what I did is correct (hence the failure on both W2K3 & ROS). It seems to me that symlink resolution is up to the FSD and not to IO which only handles mount point traversal.
If someone (Alex?) can confirm/infirm and give more insight, that's more than welcome.

svn path=/trunk/; revision=69322
2015-09-22 22:31:08 +00:00
Thomas Faber 2ea155305a [KMTESTS]
- Add missing OBJ_KERNEL_HANDLE
- OBJ_KERNEL_HANDLE in user mode has no effect... no reason to make a define around it
CORE-10207

svn path=/trunk/; revision=69296
2015-09-19 21:46:40 +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
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
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
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
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 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 46029920aa [KMTEST:IO]
- Add a test for IoCreateNotificationEvent/IoCreateSynchronizationEvent

svn path=/trunk/; revision=57359
2012-09-21 22:12:47 +00:00
Amine Khaldi 7d3f5052d0 * Addendum to r55855.
svn path=/trunk/; revision=55856
2012-02-25 17:23:58 +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