2 * PROJECT: ReactOS kernel-mode tests
3 * LICENSE: GPLv2+ - See COPYING in the top level directory
4 * PURPOSE: Kernel-Mode Test Suite *WaitForMultipleObjects
5 * PROGRAMMER: Pierre Schweitzer <thomas.faber@reactos.org>
16 KernelModeTest(IN PVOID Context
)
20 Status
= ZwWaitForMultipleObjects(2, (void **)0x42424242, WaitAll
, FALSE
, NULL
);
21 ok_eq_hex(Status
, STATUS_ACCESS_VIOLATION
);
24 START_TEST(ZwWaitForMultipleObjects
)
26 PKTHREAD ThreadHandle
;
28 /* We've to be in kernel mode, so spawn a thread */
29 ThreadHandle
= KmtStartThread(KernelModeTest
, NULL
);
30 KmtFinishThread(ThreadHandle
, NULL
);