graphicstest/graphicstestharness/inc/TGraphicsHarness.h
changeset 187 9f66f99ee56f
parent 0 5d03bc08d59c
child 164 25ffed67c7ef
--- 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) 
 	{