From 2b47f608993f1901aa09daf5535421a5e1bc34a1 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Mon, 22 Apr 2013 06:49:01 +0000 Subject: [PATCH] [KMTEST:FSRTL] Add a test that matches rosautotest.exe behavior svn path=/trunk/; revision=58826 --- rostests/kmtests/ntos_fsrtl/FsRtlExpression.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c b/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c index cff59cfbf98..9c38b7ed17b 100644 --- a/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c +++ b/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c @@ -359,6 +359,10 @@ static VOID FsRtlIsNameInExpressionTest() 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 @@ static VOID FsRtlIsDbcsInExpressionTest() 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)