--- a/graphicstest/graphicstestharness/inc/TGraphicsHarness.h Tue Jun 22 15:21:29 2010 +0300
+++ b/graphicstest/graphicstestharness/inc/TGraphicsHarness.h Fri Jul 16 11:45:55 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)
{