mirror of
https://github.com/reactos/reactos.git
synced 2024-10-21 21:34:17 +00:00
ed72d2fbd2
- 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
22 lines
577 B
C
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");
|
|
}
|