persistentstorage/store/TSTOR/t_stordict.cpp
changeset 55 44f437012c90
parent 14 15018f1726c7
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1998-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".
    89 //If (!aValue) then the test will be panicked, the test data files will be deleted.
    89 //If (!aValue) then the test will be panicked, the test data files will be deleted.
    90 static void Check(TInt aValue, TInt aLine)
    90 static void Check(TInt aValue, TInt aLine)
    91     {
    91     {
    92     if(!aValue)
    92     if(!aValue)
    93         {
    93         {
       
    94         TheTest.Printf(_L("*** Expression evaluated to false\r\n"));
    94         DeleteDataFiles();
    95         DeleteDataFiles();
    95         TheTest(EFalse, aLine);
    96         TheTest(EFalse, aLine);
    96         }
    97         }
    97     }
    98     }
    98 //If (aValue != aExpected) then the test will be panicked, the test data files will be deleted.
    99 //If (aValue != aExpected) then the test will be panicked, the test data files will be deleted.
    99 static void Check(TInt aValue, TInt aExpected, TInt aLine)
   100 static void Check(TInt aValue, TInt aExpected, TInt aLine)
   100     {
   101     {
   101     if(aValue != aExpected)
   102     if(aValue != aExpected)
   102         {
   103         {
   103         RDebug::Print(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue);
   104         TheTest.Printf(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue);
   104         DeleteDataFiles();
   105         DeleteDataFiles();
   105         TheTest(EFalse, aLine);
   106         TheTest(EFalse, aLine);
   106         }
   107         }
   107     }
   108     }
   108 //Use these to test conditions.
   109 //Use these to test conditions.