equal
deleted
inserted
replaced
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
184 { |
184 { |
185 if(!aValue) |
185 if(!aValue) |
186 { |
186 { |
187 DeleteTestFiles(); |
187 DeleteTestFiles(); |
188 PrintSqliteErrMsg(); |
188 PrintSqliteErrMsg(); |
|
189 Print("*** Expression evaluated to false\r\n"); |
189 TestTestLine(EFalse, aLine); |
190 TestTestLine(EFalse, aLine); |
190 } |
191 } |
191 } |
192 } |
192 static void Check(TInt aValue, TInt aExpected, TInt aLine) |
193 static void Check(TInt aValue, TInt aExpected, TInt aLine) |
193 { |
194 { |
194 if(aValue != aExpected) |
195 if(aValue != aExpected) |
195 { |
196 { |
196 DeleteTestFiles(); |
197 DeleteTestFiles(); |
197 RDebug::Print(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue); |
198 PrintIII("*** Expected error: %d, got: %d. Ignore: %d\r\n", aExpected, aValue, 0); |
198 PrintSqliteErrMsg(); |
199 PrintSqliteErrMsg(); |
199 TestTestLine(EFalse, aLine); |
200 TestTestLine(EFalse, aLine); |
200 } |
201 } |
201 } |
202 } |
202 #define TEST(arg) ::Check((arg), __LINE__) |
203 #define TEST(arg) ::Check((arg), __LINE__) |