Author: pschweitzer Date: Mon Apr 22 06:49:01 2013 New Revision: 58826
URL: http://svn.reactos.org/svn/reactos?rev=58826&view=rev Log: [KMTEST:FSRTL] Add a test that matches rosautotest.exe behavior
Modified: trunk/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c
Modified: trunk/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/ntos_fsrtl/FsRtlEx... ============================================================================== --- trunk/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c [iso-8859-1] (original) +++ trunk/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c [iso-8859-1] Mon Apr 22 06:49:01 2013 @@ -359,6 +359,10 @@ ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE, "expected FALSE, got TRUE\n"); RtlInitUnicodeString(&Name, L"ac.exe"); ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE, "expected FALSE, got TRUE\n"); + + RtlInitUnicodeString(&Expression, L"<.exe"); + RtlInitUnicodeString(&Name, L"test.exe"); + ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE, "expected TRUE, got FALSE\n"); }
static VOID FsRtlIsDbcsInExpressionTest() @@ -674,6 +678,10 @@ ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected FALSE, got TRUE\n"); RtlInitAnsiString(&Name, "ac.exe"); ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected FALSE, got TRUE\n"); + + RtlInitAnsiString(&Expression, "<.exe"); + RtlInitAnsiString(&Name, "test.exe"); + ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE, got FALSE\n"); }
START_TEST(FsRtlExpression)