mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 19:03:01 +00:00
![Hernán Di Pietro](/assets/img/avatar_default.png)
[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
74 lines
3 KiB
C
74 lines
3 KiB
C
/*
|
|
* PROJECT: ReactOS kernel-mode tests
|
|
* LICENSE: LGPL-2.1+ (https://spdx.org/licenses/LGPL-2.1+)
|
|
* PURPOSE: Kernel-Mode Test Suite user-mode test list
|
|
*/
|
|
|
|
#include <kmt_test.h>
|
|
|
|
KMT_TESTFUNC Test_CcCopyRead;
|
|
KMT_TESTFUNC Test_CcCopyWrite;
|
|
KMT_TESTFUNC Test_CcMapData;
|
|
KMT_TESTFUNC Test_CcPinMappedData;
|
|
KMT_TESTFUNC Test_CcPinRead;
|
|
KMT_TESTFUNC Test_CcSetFileSizes;
|
|
KMT_TESTFUNC Test_Example;
|
|
KMT_TESTFUNC Test_FileAttributes;
|
|
KMT_TESTFUNC Test_FindFile;
|
|
KMT_TESTFUNC Test_FltMgrLoad;
|
|
KMT_TESTFUNC Test_FltMgrReg;
|
|
KMT_TESTFUNC Test_HidPDescription;
|
|
KMT_TESTFUNC Test_IoCreateFile;
|
|
KMT_TESTFUNC Test_IoDeviceObject;
|
|
KMT_TESTFUNC Test_IoReadWrite;
|
|
KMT_TESTFUNC Test_MmMapLockedPagesSpecifyCache;
|
|
KMT_TESTFUNC Test_NtCreateSection;
|
|
KMT_TESTFUNC Test_PoIrp;
|
|
KMT_TESTFUNC Test_RtlAvlTree;
|
|
KMT_TESTFUNC Test_RtlException;
|
|
KMT_TESTFUNC Test_RtlIntSafe;
|
|
KMT_TESTFUNC Test_RtlMemory;
|
|
KMT_TESTFUNC Test_RtlRegistry;
|
|
KMT_TESTFUNC Test_RtlSplayTree;
|
|
KMT_TESTFUNC Test_RtlStack;
|
|
KMT_TESTFUNC Test_RtlStrSafe;
|
|
KMT_TESTFUNC Test_RtlUnicodeString;
|
|
KMT_TESTFUNC Test_TcpIpIoctl;
|
|
KMT_TESTFUNC Test_TcpIpTdi;
|
|
KMT_TESTFUNC Test_TcpIpConnect;
|
|
|
|
/* tests with a leading '-' will not be listed */
|
|
const KMT_TEST TestList[] =
|
|
{
|
|
{ "CcCopyRead", Test_CcCopyRead },
|
|
{ "CcCopyWrite", Test_CcCopyWrite },
|
|
{ "CcMapData", Test_CcMapData },
|
|
{ "CcPinMappedData", Test_CcPinMappedData },
|
|
{ "CcPinRead", Test_CcPinRead },
|
|
{ "CcSetFileSizes", Test_CcSetFileSizes },
|
|
{ "-Example", Test_Example },
|
|
{ "FileAttributes", Test_FileAttributes },
|
|
{ "FindFile", Test_FindFile },
|
|
{ "-FltMgrLoad", Test_FltMgrLoad }, // TODO: WIP/untested/crashes.
|
|
{ "-FltMgrReg", Test_FltMgrReg }, // TODO: WIP/untested/crashes.
|
|
{ "HidPDescription", Test_HidPDescription },
|
|
{ "IoCreateFile", Test_IoCreateFile },
|
|
{ "IoDeviceObject", Test_IoDeviceObject },
|
|
{ "IoReadWrite", Test_IoReadWrite },
|
|
{ "MmMapLockedPagesSpecifyCache", Test_MmMapLockedPagesSpecifyCache },
|
|
{ "NtCreateSection", Test_NtCreateSection },
|
|
{ "PoIrp", Test_PoIrp },
|
|
{ "RtlAvlTree", Test_RtlAvlTree },
|
|
{ "RtlException", Test_RtlException },
|
|
{ "RtlIntSafe", Test_RtlIntSafe },
|
|
{ "RtlMemory", Test_RtlMemory },
|
|
{ "RtlRegistry", Test_RtlRegistry },
|
|
{ "RtlSplayTree", Test_RtlSplayTree },
|
|
{ "RtlStack", Test_RtlStack },
|
|
{ "RtlStrSafe", Test_RtlStrSafe },
|
|
{ "RtlUnicodeString", Test_RtlUnicodeString },
|
|
{ "TcpIpTdi", Test_TcpIpTdi },
|
|
{ "TcpIpConnect", Test_TcpIpConnect },
|
|
{ NULL, NULL },
|
|
};
|