mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +00:00
[NTDLL_APITEST]
Fix test Spotted by Alex svn path=/trunk/; revision=69516
This commit is contained in:
parent
00e97e51bb
commit
fedc72ff66
1 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ START_TEST(RtlAllocateHeap)
|
||||||
{
|
{
|
||||||
Buffers[i] = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_CREATE_ALIGN_16, (i % 16 ) + 1);
|
Buffers[i] = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_CREATE_ALIGN_16, (i % 16 ) + 1);
|
||||||
ASSERT(Buffers[i] != NULL);
|
ASSERT(Buffers[i] != NULL);
|
||||||
if (!((ULONG_PTR)Buffers[i] & 0x2))
|
if (!((ULONG_PTR)Buffers[i] & 0xF))
|
||||||
{
|
{
|
||||||
Aligned = FALSE;
|
Aligned = FALSE;
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ START_TEST(RtlAllocateHeap)
|
||||||
RtlFreeHeap(RtlGetProcessHeap(), 0, Buffers[i]);
|
RtlFreeHeap(RtlGetProcessHeap(), 0, Buffers[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
ok(Aligned == FALSE, "No unaligned address returned\n");
|
ok(Aligned == FALSE, "No unaligned address returned\n");
|
||||||
|
|
||||||
Aligned = TRUE;
|
Aligned = TRUE;
|
||||||
Parameters.Length = sizeof(Parameters);
|
Parameters.Length = sizeof(Parameters);
|
||||||
|
@ -48,7 +48,7 @@ START_TEST(RtlAllocateHeap)
|
||||||
{
|
{
|
||||||
Buffers[i] = RtlAllocateHeap(hHeap, 0, (i % 16 ) + 1);
|
Buffers[i] = RtlAllocateHeap(hHeap, 0, (i % 16 ) + 1);
|
||||||
ASSERT(Buffers[i] != NULL);
|
ASSERT(Buffers[i] != NULL);
|
||||||
if (!((ULONG_PTR)Buffers[i] & 0x2))
|
if (!((ULONG_PTR)Buffers[i] & 0xF))
|
||||||
{
|
{
|
||||||
Aligned = FALSE;
|
Aligned = FALSE;
|
||||||
}
|
}
|
||||||
|
@ -61,5 +61,5 @@ START_TEST(RtlAllocateHeap)
|
||||||
|
|
||||||
RtlDestroyHeap(hHeap);
|
RtlDestroyHeap(hHeap);
|
||||||
|
|
||||||
ok(Aligned == FALSE, "No unaligned address returned\n");
|
ok(Aligned == TRUE, "Unaligned address returned\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue