reactos/modules/rostests/kmtests
Hernán Di Pietro 99818568ed
[DDK] RtlUnicodeStringPrintf(Ex) implementations and ntstrsafe.h tests (#522, #523)
[KMTESTS:RTL] (CORE-14565)

+ Added buffer overrun tests.
+ New style header.
+ ISO C90 compatibility

[DDK] (CORE-9819): RtlUnicodeStringPrintf(Ex) and RtlUnicodeStringValidate(Ex) fixes plus formatting.

[DDK]: Cosmetic changes  (NTSTATUS variable naming and tabs)

[DDK] First implementation of Unicode functions for NtStrSafe (CORE-9819)

+ This implementation does not modify the interface of previous functions.
+ Since we need length returned for the destination UNICODE_STRING.Length field:
  - an intermediate "Len" postfixed function was added with optional
    argument to return the _vsnwprintf character count.
  - Wide Printf(Ex) functions already existent work now call new Rtlp
    private worker functions.
+ For several UnicodeStringPrintf(Ex) tests, see work going on CORE-14565

NOTES:

+ MSDN says they won't insert NULL characters on formatted strings. But
  seems this is incorrect at MSDN (interpret this as DONT ASSUME NULL-termination).
  We return zero-terminated strings, and MS functions seems to do the same.
  (XP DDK 7.1)

[DDK] First implementation of Unicode functions for NtStrSafe (CORE-9819)

+ This implementation does not modify the interface of previous functions.
+ Since we need length returned for the destination UNICODE_STRING.Length field:
  - an intermediate "Len" postfixed function was added with optional
    argument to return the _vsnwprintf character count.
  - Wide Printf(Ex) functions already existent work now call new Rtlp
    private worker functions.
+ For several UnicodeStringPrintf(Ex) tests, see work going on CORE-14565

NOTES:

+ MSDN says they won't insert NULL characters on formatted strings. But
  seems this is incorrect at MSDN (interpret this as DONT ASSUME NULL-termination).
  We return zero-terminated strings, and MS functions seems to do the same.
  (XP DDK 7.1)

[DDK] Fixed bad NtStrSafe.h va_start call (CORE-9819)

Update on RtlUnicodeStringPrintfEx plus cosmetic changes.

[DDK] First implementation of Unicode functions for NtStrSafe (CORE-9819)

+ This implementation does not modify the interface of previous functions.
+ Since we need length returned for the destination UNICODE_STRING.Length field:
  - an intermediate "Len" postfixed function was added with optional
    argument to return the _vsnwprintf character count.
  - Wide Printf(Ex) functions already existent work now call new Rtlp
    private worker functions.
+ For several UnicodeStringPrintf(Ex) tests, see work going on CORE-14565

NOTES:

+ MSDN says they won't insert NULL characters on formatted strings. But
  seems this is incorrect at MSDN (interpret this as DONT ASSUME NULL-termination).
  We return zero-terminated strings, and MS functions seems to do the same.
  (XP DDK 7.1)

[KMTESTS:RTL] Tests for new RtlUnicodePrintf(Ex) functions (CORE-14565)

+ 45 Tests working.
+ Lacks remaining non-Unicode functions in NtStrSafe.h for now.
+ Used for first tests on CORE-9819

[KMTESTS/RTL] Fixed test not taking care of null (CORE-14565)

[DDK] Fixed bad NtStrSafe.h va_start call (CORE-9819)

[KMTESTS:RTL] First Test.

Update on RtlUnicodeStringPrintfEx plus cosmetic changes.

[KMTESTS] Added NtStrSafe to test lists (CORE-14565)

First commit: Skeleton for test implementation + Addition to COMMON SOURCES in kmtests Cmake lists.

WIP.
+Implementation of RtlStringVPrintfWorkerLenW, RtlStringVPrintfExWorkerLenW to avoid changing existing public functions. This is required as existent functions did not return vsnprintf result, so we didn't have any return info to update UNICODE_STRING.Length.
+Additional implementation of RtlUnicodeStringValidate for checking purposes.
+Former RtlStringVPrintfWorker(ex) refactored to RtlInternalStringVPrintf(Ex)WorkerW.
+No ANSI functions affected as we didn't need them for Unicode printf's.

WIP: RtlUnicodeStringPrintf
2019-08-28 22:28:13 +02:00
..
example [CMAKE] Use modules instead of shared libraries 2019-04-06 17:43:38 +02:00
fltmgr [CMAKE] Use modules instead of shared libraries 2019-04-06 17:43:38 +02:00
hidparse [CMAKE] Use modules instead of shared libraries 2019-04-06 17:43:38 +02:00
include [KMTESTS:OB] Add support for LUID mappings being disabled in ObSecurity tests 2019-06-30 23:07:54 +02:00
kernel32 [CMAKE] Use modules instead of shared libraries 2019-04-06 17:43:38 +02:00
kmtest [DDK] RtlUnicodeStringPrintf(Ex) implementations and ntstrsafe.h tests (#522, #523) 2019-08-28 22:28:13 +02:00
kmtest_drv [DDK] RtlUnicodeStringPrintf(Ex) implementations and ntstrsafe.h tests (#522, #523) 2019-08-28 22:28:13 +02:00
novp_fsrtl
npfs [REACTOS] Improve how some ASSERTMSG() message values are printed: enforce ending "\n". 2018-08-08 22:03:45 +02:00
ntos_cc [KMTESTS:CC] Make buffer mapping tests more accurate 2019-07-03 21:39:35 +02:00
ntos_cm
ntos_ex [NTOSKRNL] Add a test for ExUuidCreate 2019-03-02 10:30:00 +01:00
ntos_fsrtl [KMTESTS:FSRTL] Add more tests for FsRtlIsNameInExpression 2019-03-31 11:44:00 +02:00
ntos_io [CMAKE] Use modules instead of shared libraries 2019-04-06 17:43:38 +02:00
ntos_ke [ROSTESTS] Add missing '\n' to a few skip() 2019-06-06 17:33:59 +02:00
ntos_mm [CMAKE] Use modules instead of shared libraries 2019-04-06 17:43:38 +02:00
ntos_ob [KMTESTS:OB] Add support for LUID mappings being disabled in ObSecurity tests 2019-06-30 23:07:54 +02:00
ntos_po [CMAKE] Use modules instead of shared libraries 2019-04-06 17:43:38 +02:00
ntos_ps
ntos_se
rtl [DDK] RtlUnicodeStringPrintf(Ex) implementations and ntstrsafe.h tests (#522, #523) 2019-08-28 22:28:13 +02:00
tcpip [CMAKE] Use modules instead of shared libraries 2019-04-06 17:43:38 +02:00
CMakeLists.txt [DDK] RtlUnicodeStringPrintf(Ex) implementations and ntstrsafe.h tests (#522, #523) 2019-08-28 22:28:13 +02:00
readme.txt

This directory contains the ReactOS Kernel-Mode Test Suite.

The kmtest, kmtest_drv and include subdirectories contain the
testing framework infrastructure, other directories contain tests.

The example subdirectory contains a set of small tests that can be used as
examples and templates.


See http://www.reactos.org/wiki/KmtestsHowto for more
information and a guide on how to use the framework.