[KMTESTS]

- reference streamout.c and provide a wctomb stub to have an any-IRQL vsnprintf implementation for the test framework

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52330
This commit is contained in:
Thomas Faber 2011-06-18 11:03:28 +00:00
parent a6b4eba335
commit dffa722bce
3 changed files with 56 additions and 2 deletions

View file

@ -8,7 +8,9 @@
#ifndef _KMTEST_TEST_H_
#define _KMTEST_TEST_H_
typedef void KMT_TESTFUNC(void);
#include <stdarg.h>
typedef VOID KMT_TESTFUNC(VOID);
typedef struct
{
@ -74,6 +76,12 @@ static VOID KmtAddToLogBuffer(PKMT_RESULTBUFFER Buffer, PCSTR String, SIZE_T Len
KmtMemCpy(&Buffer->LogBuffer[OldLength], String, Length);
}
#ifdef KMT_KERNEL_MODE
INT __cdecl KmtVSNPrintF(PSTR Buffer, SIZE_T BufferMaxLength, PCSTR Format, va_list Arguments);
#elif defined KMT_USER_MODE
#define KmtVSNPrintF vsnprintf
#endif /* defined KMT_USER_MODE */
#endif /* defined KMT_DEFINE_TEST_FUNCTIONS */
#endif /* !defined _KMTEST_TEST_H_ */