reactos/kmtests/example/Example_user.c
Thomas Faber 8d003b1a1c [KMTESTS]
- add a user-mode part to the example testlist.c
- misc fixes

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52549
2011-07-06 18:55:21 +00:00

26 lines
725 B
C

/*
* PROJECT: ReactOS kernel-mode tests
* LICENSE: GPLv2+ - See COPYING in the top level directory
* PURPOSE: Kernel-Mode Test Suite Example user-mode test part
* PROGRAMMER: Thomas Faber <thfabba@gmx.de>
*/
#define UNICODE
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <kmt_test.h>
START_TEST(Example)
{
/* do some user-mode stuff */
SYSTEM_INFO SystemInfo;
trace("Message from user-mode\n");
GetSystemInfo(&SystemInfo);
ok(SystemInfo.dwActiveProcessorMask != 0, "No active processors?!\n");
/* now run the kernel-mode part (see Example.c).
* If no user-mode part exists, this is what's done automatically */
KmtRunKernelTest("Example");
}