mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:43:00 +00:00
[KMTESTS]
- add the proper testing framework functions for winetest-like feel - remove thereby obsolete Log* functions - update example test to show usage of the new macros svn path=/branches/GSoC_2011/KMTestSuite/; revision=52359
This commit is contained in:
parent
dffa722bce
commit
ba63f36790
8 changed files with 154 additions and 137 deletions
|
@ -7,10 +7,15 @@
|
|||
|
||||
#include <ntddk.h>
|
||||
#include <kmt_test.h>
|
||||
#include <kmt_log.h>
|
||||
|
||||
VOID Test_Example(VOID)
|
||||
{
|
||||
/* TODO: this should be trace(), as in winetests */
|
||||
LogPrint("Message from kernel\n");
|
||||
KIRQL Irql;
|
||||
|
||||
ok(1, "This test should succeed.\n");
|
||||
ok(0, "This test should fail.\n");
|
||||
trace("Message from kernel, low-irql. %s. %ls.\n", "Format strings work", L"Even with Unicode");
|
||||
KeRaiseIrql(HIGH_LEVEL, &Irql);
|
||||
trace("Message from kernel, high-irql. %s. %ls.\n", "Format strings work", L"Even with Unicode");
|
||||
KeLowerIrql(Irql);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue