Author: pschweitzer
Date: Sun Feb 13 08:19:16 2011
New Revision: 50679

URL: http://svn.reactos.org/svn/reactos?rev=50679&view=rev
Log:
[KMTEST]
Some more tests to FsRtlIsNameInExpression & FsRtlIsDbcsInExpression. Some are 
failing.

Modified:
    trunk/rostests/drivers/kmtest/ntos_fsrtl.c

Modified: trunk/rostests/drivers/kmtest/ntos_fsrtl.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/rostests/drivers/kmtest/ntos_fsrtl.c?rev=50679&r1=50678&r2=50679&view=diff
==============================================================================
--- trunk/rostests/drivers/kmtest/ntos_fsrtl.c [iso-8859-1] (original)
+++ trunk/rostests/drivers/kmtest/ntos_fsrtl.c [iso-8859-1] Sun Feb 13 08:19:16 
2011
@@ -139,6 +139,22 @@
     RtlInitUnicodeString(&Expression, L"*.c.d");
     RtlInitUnicodeString(&Name, L"a.b.c.d");
     ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE, 
"expected TRUE, got FALSE");
+    RtlInitUnicodeString(&Expression, L"*?");
+    RtlInitUnicodeString(&Name, L"");
+    ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE, 
"expected FALSE, got TRUE");
+    RtlInitUnicodeString(&Name, L"a");
+    ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE, 
"expected TRUE, got FALSE");
+    RtlInitUnicodeString(&Name, L"aa");
+    ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE, 
"expected TRUE, got FALSE");
+    RtlInitUnicodeString(&Expression, L"?*?");
+    RtlInitUnicodeString(&Name, L"");
+    ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE, 
"expected FALSE, got TRUE");
+    RtlInitUnicodeString(&Name, L"a");
+    ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE, 
"expected FALSE, got TRUE");
+    RtlInitUnicodeString(&Name, L"aa");
+    ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE, 
"expected TRUE, got FALSE");
+    RtlInitUnicodeString(&Name, L"aaa");
+    ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE, 
"expected TRUE, got FALSE");
 }
 
 VOID FsRtlIsDbcsInExpressionTest()
@@ -250,6 +266,22 @@
 
     RtlInitAnsiString(&Expression, "*.c.d");
     RtlInitAnsiString(&Name, "a.b.c.d");
+    ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE, 
got FALSE");
+    RtlInitAnsiString(&Expression, "*?");
+    RtlInitAnsiString(&Name, "");
+    ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected FALSE, 
got TRUE");
+    RtlInitAnsiString(&Name, "a");
+    ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE, 
got FALSE");
+    RtlInitAnsiString(&Name, "aa");
+    ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE, 
got FALSE");
+    RtlInitAnsiString(&Expression, "?*?");
+    RtlInitAnsiString(&Name, "");
+    ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected FALSE, 
got TRUE");
+    RtlInitAnsiString(&Name, "a");
+    ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected FALSE, 
got TRUE");
+    RtlInitAnsiString(&Name, "aa");
+    ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE, 
got FALSE");
+    RtlInitAnsiString(&Name, "aaa");
     ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE, 
got FALSE");
 }
 


Reply via email to