From: Pierre Schweitzer Date: Mon, 7 Feb 2011 21:38:55 +0000 (+0000) Subject: [KMTEST] X-Git-Tag: backups/ros-branch-0_3_13@51035~56 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=ff11a09b0261b2f29665a7a6affcf607ea4f00f4;hp=395793a7f2706f929bea95ad19a60714ffe3b462;ds=sidebyside [KMTEST] Adding a new test for FsRtlIsNameInExpression(). Which is failing... Will that end a day?! svn path=/trunk/; revision=50614 --- diff --git a/rostests/drivers/kmtest/ntos_fsrtl.c b/rostests/drivers/kmtest/ntos_fsrtl.c index fb407c8f8ac..6e3a5b3b746 100644 --- a/rostests/drivers/kmtest/ntos_fsrtl.c +++ b/rostests/drivers/kmtest/ntos_fsrtl.c @@ -135,6 +135,10 @@ VOID FsRtlIsNameInExpressionTest() ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE, "expected TRUE, got FALSE"); RtlInitUnicodeString(&Name, L"ntoskrnl.exe."); ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE, "expected TRUE, got FALSE"); + + RtlInitUnicodeString(&Expression, L"*.c.d"); + RtlInitUnicodeString(&Name, L"a.b.c.d"); + ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE, "expected TRUE, got FALSE"); } VOID FsRtlIsDbcsInExpressionTest() @@ -243,6 +247,10 @@ VOID FsRtlIsDbcsInExpressionTest() ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE, got FALSE"); RtlInitAnsiString(&Name, "ntoskrnl.exe."); ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE, got FALSE"); + + RtlInitAnsiString(&Expression, "*.c.d"); + RtlInitAnsiString(&Name, "a.b.c.d"); + ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE, got FALSE"); } /* PUBLIC FUNCTIONS ***********************************************************/