persistentstorage/sql/TEST/testexecute/SQLite/src/cdtest.cpp
branchRCL_3
changeset 15 fcc16690f446
parent 0 08ec8eefde2f
child 23 26645d81f48d
equal deleted inserted replaced
14:04ec7606545c 15:fcc16690f446
    15 
    15 
    16 #include "cdtest.h"
    16 #include "cdtest.h"
    17 #include "hashing.h"
    17 #include "hashing.h"
    18 #include "common.h"
    18 #include "common.h"
    19 #include<bautils.h>
    19 #include<bautils.h>
       
    20 
       
    21 //Constants taken from SqlSrvConfig.h
       
    22 #ifdef __WINSCW__
       
    23 		const TInt KDefaultSoftHeapLimitKb = 1024;
       
    24 #else
       
    25 		const TInt KDefaultSoftHeapLimitKb = 8192;
       
    26 #endif	
    20 
    27 
    21 // Includes any code required for 'Code-Driven' testing, generally tests
    28 // Includes any code required for 'Code-Driven' testing, generally tests
    22 // that cannot be data-driven (or not completely).
    29 // that cannot be data-driven (or not completely).
    23 
    30 
    24 CSQLCDT::~CSQLCDT()
    31 CSQLCDT::~CSQLCDT()
   474             TInt actual;
   481             TInt actual;
   475             if(i8bit)
   482             if(i8bit)
   476                 actual = asfs->SelectIntL(stmt8);
   483                 actual = asfs->SelectIntL(stmt8);
   477             else
   484             else
   478                 actual = asfs->SelectIntL(stmt);
   485                 actual = asfs->SelectIntL(stmt);
   479             TInt expected;
   486 			
   480             conv.Val(expected);
   487 			TInt expected;	
       
   488 			if (res.CompareF(_L("DEFAULT_SOFT_HEAP_LIMIT")) == 0)
       
   489 				{
       
   490 				expected = KDefaultSoftHeapLimitKb;
       
   491 				}
       
   492 			else
       
   493 				{
       
   494 				conv.Val(expected);
       
   495 				}
       
   496 				
   481             if( actual != expected )
   497             if( actual != expected )
   482                 {
   498                 {
   483                 SetTestStepResult(EFail);
   499                 SetTestStepResult(EFail);
   484                 INFO_PRINTF1(HTML_RED);
   500                 INFO_PRINTF1(HTML_RED);
   485                 ERR_PRINTF4(_L("%S: SelectIntL gave %d, wanted %d"),
   501                 ERR_PRINTF4(_L("%S: SelectIntL gave %d, wanted %d"),