Author: pschweitzer
Date: Sun Apr 21 13:47:54 2013
New Revision: 58801
URL:
http://svn.reactos.org/svn/reactos?rev=58801&view=rev
Log:
[KMTESTS:FSRTL]
Add more tests for FsRtlIs*InExpression()
Tested on w2k3 by Thomas
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/FsRtlE…
==============================================================================
--- trunk/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c [iso-8859-1] (original)
+++ trunk/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c [iso-8859-1] Sun Apr 21 13:47:54
2013
@@ -166,6 +166,44 @@
ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE,
"expected FALSE, got TRUE\n");
RtlInitUnicodeString(&Name, L"F0_001.txt");
ok(FsRtlIsNameInExpression(&Expression, &Name, TRUE, NULL) == FALSE,
"expected FALSE, got TRUE\n");
+
+ RtlInitUnicodeString(&Expression, L"F0_<\"*");
+ RtlInitUnicodeString(&Name, L".");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE,
"expected FALSE, got TRUE\n");
+ RtlInitUnicodeString(&Name, L"..");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE,
"expected FALSE, got TRUE\n");
+ RtlInitUnicodeString(&Name, L"SETUP.EXE");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE,
"expected FALSE, got TRUE\n");
+ RtlInitUnicodeString(&Name, L"f0_");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE,
"expected FALSE, got TRUE\n");
+ RtlInitUnicodeString(&Name, L"f0_");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, TRUE, NULL) == TRUE,
"expected TRUE, got FALSE\n");
+ RtlInitUnicodeString(&Name, L"F0_");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE,
"expected TRUE, got FALSE\n");
+ RtlInitUnicodeString(&Name, L"f0_.");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE,
"expected FALSE, got TRUE\n");
+ RtlInitUnicodeString(&Name, L"f0_.");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, TRUE, NULL) == TRUE,
"expected TRUE, got FALSE\n");
+ RtlInitUnicodeString(&Name, L"F0_.");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE,
"expected TRUE, got FALSE\n");
+ RtlInitUnicodeString(&Name, L"F0_001");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE,
"expected TRUE, got FALSE\n");
+ RtlInitUnicodeString(&Name, L"F0_001");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, TRUE, NULL) == TRUE,
"expected TRUE, got FALSE\n");
+ RtlInitUnicodeString(&Name, L"f0_001");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE,
"expected FALSE, got TRUE\n");
+ RtlInitUnicodeString(&Name, L"f0_001");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, TRUE, NULL) == TRUE,
"expected TRUE, got FALSE\n");
+ RtlInitUnicodeString(&Name, L"F0_OO1.");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE,
"expected TRUE, got FALSE\n");
+ RtlInitUnicodeString(&Name, L"f0_001.txt");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE,
"expected FALSE, got TRUE\n");
+ RtlInitUnicodeString(&Name, L"f0_001.txt");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, TRUE, NULL) == TRUE,
"expected TRUE, got FALSE\n");
+ RtlInitUnicodeString(&Name, L"F0_001.txt");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE,
"expected TRUE, got FALSE\n");
+ RtlInitUnicodeString(&Name, L"F0_001.txt");
+ ok(FsRtlIsNameInExpression(&Expression, &Name, TRUE, NULL) == TRUE,
"expected TRUE, got FALSE\n");
RtlInitUnicodeString(&Expression, L"*.TTF");
RtlInitUnicodeString(&Name, L".");
@@ -452,6 +490,32 @@
RtlInitAnsiString(&Name, "F0_001.txt");
ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected
FALSE, got TRUE\n");
+ RtlInitAnsiString(&Expression, "F0_<\"*");
+ RtlInitAnsiString(&Name, ".");
+ ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected
FALSE, got TRUE\n");
+ RtlInitAnsiString(&Name, "..");
+ ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected
FALSE, got TRUE\n");
+ RtlInitAnsiString(&Name, "SETUP.EXE");
+ ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected
FALSE, got TRUE\n");
+ RtlInitAnsiString(&Name, "f0_");
+ ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected
FALSE, got TRUE\n");
+ RtlInitAnsiString(&Name, "F0_");
+ ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE,
got FALSE\n");
+ RtlInitAnsiString(&Name, "f0_.");
+ ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected
FALSE, got TRUE\n");
+ RtlInitAnsiString(&Name, "F0_.");
+ ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE,
got FALSE\n");
+ RtlInitAnsiString(&Name, "F0_001");
+ ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE,
got FALSE\n");
+ RtlInitAnsiString(&Name, "f0_001");
+ ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected
FALSE, got TRUE\n");
+ RtlInitAnsiString(&Name, "F0_OO1.");
+ ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE,
got FALSE\n");
+ RtlInitAnsiString(&Name, "f0_001.txt");
+ ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected
FALSE, got TRUE\n");
+ RtlInitAnsiString(&Name, "F0_001.txt");
+ ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE,
got FALSE\n");
+
RtlInitAnsiString(&Expression, "*.TTF");
RtlInitAnsiString(&Name, ".");
ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected
FALSE, got TRUE\n");