mirror of
https://github.com/reactos/reactos.git
synced 2025-05-19 00:54:18 +00:00
parent
45aa179386
commit
215e48d0bd
1 changed files with 4 additions and 4 deletions
|
@ -172,7 +172,7 @@ TestIrpHandler(
|
||||||
|
|
||||||
if (IoStack->MajorFunction == IRP_MJ_CREATE)
|
if (IoStack->MajorFunction == IRP_MJ_CREATE)
|
||||||
{
|
{
|
||||||
ok(KeGetCurrentIrql() == PASSIVE_LEVEL, "Wrong IRQL: %d\n", KeGetCurrentIrql());
|
ok_irql(PASSIVE_LEVEL);
|
||||||
|
|
||||||
if (IoStack->FileObject->FileName.Length >= 2 * sizeof(WCHAR))
|
if (IoStack->FileObject->FileName.Length >= 2 * sizeof(WCHAR))
|
||||||
{
|
{
|
||||||
|
@ -237,7 +237,7 @@ TestIrpHandler(
|
||||||
|
|
||||||
if (!FlagOn(Irp->Flags, IRP_NOCACHE))
|
if (!FlagOn(Irp->Flags, IRP_NOCACHE))
|
||||||
{
|
{
|
||||||
ok(KeGetCurrentIrql() == PASSIVE_LEVEL, "Wrong IRQL: %d\n", KeGetCurrentIrql());
|
ok_irql(PASSIVE_LEVEL);
|
||||||
ok(Offset.QuadPart % PAGE_SIZE != 0, "Offset is aligned: %I64i\n", Offset.QuadPart);
|
ok(Offset.QuadPart % PAGE_SIZE != 0, "Offset is aligned: %I64i\n", Offset.QuadPart);
|
||||||
ok(Length % PAGE_SIZE != 0, "Length is aligned: %I64i\n", Length);
|
ok(Length % PAGE_SIZE != 0, "Length is aligned: %I64i\n", Length);
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ TestIrpHandler(
|
||||||
{
|
{
|
||||||
PMDL Mdl;
|
PMDL Mdl;
|
||||||
|
|
||||||
ok(KeGetCurrentIrql() == APC_LEVEL, "Wrong IRQL: %d\n", KeGetCurrentIrql());
|
ok_irql(APC_LEVEL);
|
||||||
ok((Offset.QuadPart % PAGE_SIZE == 0 || Offset.QuadPart == 0), "Offset is not aligned: %I64i\n", Offset.QuadPart);
|
ok((Offset.QuadPart % PAGE_SIZE == 0 || Offset.QuadPart == 0), "Offset is not aligned: %I64i\n", Offset.QuadPart);
|
||||||
ok(Length % PAGE_SIZE == 0, "Length is not aligned: %I64i\n", Length);
|
ok(Length % PAGE_SIZE == 0, "Length is not aligned: %I64i\n", Length);
|
||||||
|
|
||||||
|
@ -305,7 +305,7 @@ TestIrpHandler(
|
||||||
}
|
}
|
||||||
else if (IoStack->MajorFunction == IRP_MJ_CLEANUP)
|
else if (IoStack->MajorFunction == IRP_MJ_CLEANUP)
|
||||||
{
|
{
|
||||||
ok(KeGetCurrentIrql() == PASSIVE_LEVEL, "Wrong IRQL: %d\n", KeGetCurrentIrql());
|
ok_irql(PASSIVE_LEVEL);
|
||||||
KeInitializeEvent(&CacheUninitEvent.Event, NotificationEvent, FALSE);
|
KeInitializeEvent(&CacheUninitEvent.Event, NotificationEvent, FALSE);
|
||||||
CcUninitializeCacheMap(IoStack->FileObject, NULL, &CacheUninitEvent);
|
CcUninitializeCacheMap(IoStack->FileObject, NULL, &CacheUninitEvent);
|
||||||
KeWaitForSingleObject(&CacheUninitEvent.Event, Executive, KernelMode, FALSE, NULL);
|
KeWaitForSingleObject(&CacheUninitEvent.Event, Executive, KernelMode, FALSE, NULL);
|
||||||
|
|
Loading…
Reference in a new issue