1 /*
2  * PROJECT:         ReactOS kernel-mode tests
3  * LICENSE:         LGPLv2+ - See COPYING.LIB in the top level directory
4  * PURPOSE:         Kernel-Mode Test Suite UUIDs test
5  * PROGRAMMER:      Pierre Schweitzer <pierre@reactos.org>
6  */
7 
8 #include <kmt_test.h>
9 
10 #define NDEBUG
11 #include <debug.h>
12 
13 START_TEST(ExUuid)
14 {
15     UUID Uuid;
16     NTSTATUS Status;
17     ULONG i;
18 
19     for (i = 0; i < 1000; i++)
20     {
21         Status = ExUuidCreate(&Uuid);
22         ok(Status == STATUS_SUCCESS || Status == RPC_NT_UUID_LOCAL_ONLY,
23            "ExUuidCreate returned unexpected status: 0x%lx\n", Status);
24         ok((Uuid.Data3 & 0xF000) == 0x1000, "Invalid UUID version: 0x%x\n", (Uuid.Data3 & 0xF000));
25         ok((Uuid.Data4[0] & 0xC0) == 0x80, "Invalid UUID variant: 0x%x\n", (Uuid.Data4[0] & 0xF0));
26     }
27 }
28