diff -r 2717213c588a -r 9f66f99ee56f graphicstest/graphicstestharness/inc/TGraphicsHarness.h --- a/graphicstest/graphicstestharness/inc/TGraphicsHarness.h Tue Jun 22 15:21:29 2010 +0300 +++ b/graphicstest/graphicstestharness/inc/TGraphicsHarness.h Fri Sep 24 16:14:28 2010 +0300 @@ -122,7 +122,17 @@ CTGraphicsBase* CT##a##Step::CreateTestL() \ { \ return new (ELeave) CT##a (this); \ - } + } + +// Macros to automatically test error condition and report when test fails. +// Essentially same as TESTE(a,b) MACRO that CTestStep uses, except error to +// check is also error that is reported. +#define TESTNOERROR(a) \ + {\ + TInt b = a;\ + TBool c = (b == KErrNone);\ + testBooleanTrueWithErrorCode((c), (b), (TText8*)__FILE__, __LINE__);\ + } inline void CTGraphicsBase::testBooleanTrue(TBool aCondition, const TText8* aFile, TInt aLine) {