equal
deleted
inserted
replaced
514 TInt length = 0; |
514 TInt length = 0; |
515 TInt error = 1; |
515 TInt error = 1; |
516 __UHEAP_FAILNEXT(1); |
516 __UHEAP_FAILNEXT(1); |
517 TAny* table = aTableStore->GetTrueTypeTable(error, aTag, &length); |
517 TAny* table = aTableStore->GetTrueTypeTable(error, aTag, &length); |
518 __UHEAP_RESET; |
518 __UHEAP_RESET; |
519 |
519 |
|
520 #if 0 |
|
521 // __UHEAP_FAILNEXT(1) doesn't work on Platsim, so just remove this TEST |
520 #ifdef _DEBUG |
522 #ifdef _DEBUG |
521 // If it was EAvailableNew, it should have failed allocating memory |
523 // If it was EAvailableNew, it should have failed allocating memory |
522 TEST ( aExpected != EAvailableNew |
524 TEST ( aExpected != EAvailableNew |
523 || (error == KErrNoMemory && table == 0) ); |
525 || (error == KErrNoMemory && table == 0) ); |
524 #else |
526 #else |
525 //Shouldn't have any problem allocating memory in release mode as |
527 //Shouldn't have any problem allocating memory in release mode as |
526 //__UHEAP_FAILNEXT is only for debug mode |
528 //__UHEAP_FAILNEXT is only for debug mode |
527 TEST ( aExpected != EAvailableNew |
529 TEST ( aExpected != EAvailableNew |
528 || (error == KErrNone && table != 0) ); |
530 || (error == KErrNone && table != 0) ); |
|
531 #endif |
529 #endif |
532 #endif |
530 |
533 |
531 // If it returned OK, it should be returning a table with positive length |
534 // If it returned OK, it should be returning a table with positive length |
532 TEST ( error != KErrNone || (table && 0 < length) ); |
535 TEST ( error != KErrNone || (table && 0 < length) ); |
533 if (!table) |
536 if (!table) |