mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 22:26:39 +00:00
5dc58d234a
[KMTESTS:OB] Simplify kernel mode thread creation svn path=/trunk/; revision=69417
31 lines
746 B
C
31 lines
746 B
C
/*
|
|
* PROJECT: ReactOS kernel-mode tests
|
|
* LICENSE: GPLv2+ - See COPYING in the top level directory
|
|
* PURPOSE: Kernel-Mode Test Suite *WaitForMultipleObjects
|
|
* PROGRAMMER: Pierre Schweitzer <thomas.faber@reactos.org>
|
|
*/
|
|
|
|
#include <kmt_test.h>
|
|
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
static
|
|
VOID
|
|
NTAPI
|
|
KernelModeTest(IN PVOID Context)
|
|
{
|
|
NTSTATUS Status;
|
|
|
|
Status = ZwWaitForMultipleObjects(2, (void **)0x42424242, WaitAll, FALSE, NULL);
|
|
ok_eq_hex(Status, STATUS_ACCESS_VIOLATION);
|
|
}
|
|
|
|
START_TEST(ZwWaitForMultipleObjects)
|
|
{
|
|
PKTHREAD ThreadHandle;
|
|
|
|
/* We've to be in kernel mode, so spawn a thread */
|
|
ThreadHandle = KmtStartThread(KernelModeTest, NULL);
|
|
KmtFinishThread(ThreadHandle, NULL);
|
|
}
|