2015-09-28 12:25:38 +00:00
|
|
|
/*
|
|
|
|
* 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)
|
|
|
|
{
|
2015-09-29 18:43:35 +00:00
|
|
|
PKTHREAD ThreadHandle;
|
2015-09-28 12:25:38 +00:00
|
|
|
|
|
|
|
/* We've to be in kernel mode, so spawn a thread */
|
2015-09-29 18:43:35 +00:00
|
|
|
ThreadHandle = KmtStartThread(KernelModeTest, NULL);
|
|
|
|
KmtFinishThread(ThreadHandle, NULL);
|
2015-09-28 12:25:38 +00:00
|
|
|
}
|