mirror of
https://github.com/reactos/reactos.git
synced 2025-01-11 00:30:58 +00:00
[KMTEST]
Added more testcases for FsRtlIsNameInExpression() svn path=/trunk/; revision=50018
This commit is contained in:
parent
1632e9c528
commit
94b828f1a4
1 changed files with 23 additions and 0 deletions
|
@ -33,6 +33,12 @@ VOID FsRtlIsNameInExpressionTest()
|
|||
{
|
||||
UNICODE_STRING Expression, Name;
|
||||
|
||||
RtlInitUnicodeString(&Expression, L"*");
|
||||
RtlInitUnicodeString(&Name, L"");
|
||||
ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE, "expected FALSE, got TRUE");
|
||||
RtlInitUnicodeString(&Expression, L"");
|
||||
ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE, "expected TRUE, got FALSE");
|
||||
|
||||
RtlInitUnicodeString(&Expression, L"ntdll.dll");
|
||||
RtlInitUnicodeString(&Name, L".");
|
||||
ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE, "expected FALSE, got TRUE");
|
||||
|
@ -112,6 +118,23 @@ VOID FsRtlIsNameInExpressionTest()
|
|||
ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE, "expected TRUE, got FALSE");
|
||||
RtlInitUnicodeString(&Name, L"SETUP.INI");
|
||||
ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE, "expected TRUE, got FALSE");
|
||||
|
||||
RtlInitUnicodeString(&Expression, L"\"ntoskrnl.exe");
|
||||
RtlInitUnicodeString(&Name, L"ntoskrnl.exe");
|
||||
ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE, "expected FALSE, got TRUE");
|
||||
RtlInitUnicodeString(&Expression, L"ntoskrnl\"exe");
|
||||
ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == TRUE, "expected TRUE, got FALSE");
|
||||
RtlInitUnicodeString(&Expression, L"ntoskrn\".exe");
|
||||
ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE, "expected FALSE, got TRUE");
|
||||
RtlInitUnicodeString(&Expression, L"ntoskrn\"\"exe");
|
||||
ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE, "expected FALSE, got TRUE");
|
||||
RtlInitUnicodeString(&Expression, L"ntoskrnl.\"exe");
|
||||
ok(FsRtlIsNameInExpression(&Expression, &Name, FALSE, NULL) == FALSE, "expected FALSE, got TRUE");
|
||||
RtlInitUnicodeString(&Expression, L"ntoskrnl.exe\"");
|
||||
RtlInitUnicodeString(&Name, L"ntoskrnl.exe");
|
||||
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");
|
||||
}
|
||||
|
||||
/* PUBLIC FUNCTIONS ***********************************************************/
|
||||
|
|
Loading…
Reference in a new issue