diff -r 57c618273d5c -r bbf46f59e123 graphicstest/graphicstestharness/inc/TGraphicsHarness.h --- a/graphicstest/graphicstestharness/inc/TGraphicsHarness.h Thu Aug 19 11:11:18 2010 +0300 +++ b/graphicstest/graphicstestharness/inc/TGraphicsHarness.h Tue Aug 31 16:31:06 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) {