From 301f9552c0296a54dff9979ca085885f204fb86a Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 20 Apr 2013 12:54:38 +0000 Subject: [PATCH] [KMTEST:FSRTL] Fix assertion failure on checked builds svn path=/trunk/; revision=58789 --- rostests/kmtests/ntos_fsrtl/FsRtlExpression.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c b/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c index b59e6bb232d..3289619f521 100644 --- a/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c +++ b/rostests/kmtests/ntos_fsrtl/FsRtlExpression.c @@ -475,8 +475,12 @@ static VOID FsRtlIsDbcsInExpressionTest() ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected FALSE, got TRUE\n"); RtlInitAnsiString(&Name, " "); ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected FALSE, got TRUE\n"); - RtlInitAnsiString(&Name, ""); - ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected FALSE, got TRUE\n"); + + if (!KmtIsCheckedBuild) + { + RtlInitAnsiString(&Name, ""); + ok(FsRtlIsDbcsInExpression(&Expression, &Name) == FALSE, "expected FALSE, got TRUE\n"); + } RtlInitAnsiString(&Name, "."); ok(FsRtlIsDbcsInExpression(&Expression, &Name) == TRUE, "expected TRUE, got FALSE\n"); RtlInitAnsiString(&Name, "1.txt"); -- 2.17.1