equal
deleted
inserted
replaced
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2007-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". |
69 |
69 |
70 void Check(TInt aValue, TInt aExpected, TInt aLine) |
70 void Check(TInt aValue, TInt aExpected, TInt aLine) |
71 { |
71 { |
72 if(aValue != aExpected) |
72 if(aValue != aExpected) |
73 { |
73 { |
74 RDebug::Print(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue); |
74 PrintIII("*** Expected error: %d, got: %d. Ignore: %d\r\n", aExpected, aValue, 0); |
75 const char* errMsg = sqlite3_errmsg(TheDb); |
75 const char* errMsg = sqlite3_errmsg(TheDb); |
76 if(errMsg) |
76 if(errMsg) |
77 { |
77 { |
78 TBuf<200> msgBuf; |
78 PrintS("*** SQLITE error msg: \"%s\".\r\n", errMsg); |
79 msgBuf.Copy(TPtrC8((const TUint8*)errMsg)); |
|
80 RDebug::Print(_L("*** SQLITE error msg: \"%S\".\r\n"), &msgBuf); |
|
81 } |
79 } |
82 DestroyTestEnv(); |
80 DestroyTestEnv(); |
83 TestTestLine(EFalse, aLine); |
81 TestTestLine(EFalse, aLine); |
84 } |
82 } |
85 } |
83 } |