reactos/kmtests/example/KernelType.c
Thomas Faber ed72d2fbd2 [KMTESTS]
- small structure improvement in kmt_test.h
- add globals to allow easy checking for UP/MP & Free/Checked builds, as that is required for some tests
- add KernelType example test demonstrating the above
- add a function to restore the irql (allows some failing tests to exit gracefully)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52781
2011-07-22 11:51:18 +00:00

22 lines
577 B
C

/*
* PROJECT: ReactOS kernel-mode tests
* LICENSE: GPLv2+ - See COPYING in the top level directory
* PURPOSE: Kernel-Mode Test Suite Kernel Type example test
* PROGRAMMER: Thomas Faber <thfabba@gmx.de>
*/
#include <ntddk.h>
#include <kmt_test.h>
START_TEST(KernelType)
{
if (KmtIsMultiProcessorBuild)
trace("This is a MultiProcessor kernel\n");
else
trace("This is a Uniprocessor kernel\n");
if (KmtIsCheckedBuild)
trace("This is a Checked kernel\n");
else
trace("This is a Free kernel\n");
}