summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-10-11 11:20:46 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-10-16 13:21:04 +1000
commitbb8db8a056858894c170afa0736904565461cbac (patch)
tree966e8daaa7d5a23e38f9be9c2de0cc9fadab8340 /include
parent6d95952c25cd82ce4cc054b08e83270156e42e3a (diff)
include: add XORG_TESTCASE() macro for standardised printing of descriptions
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r--include/xorg/gtest/xorg-gtest.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xorg/gtest/xorg-gtest.h b/include/xorg/gtest/xorg-gtest.h
index 6a621bd..a61bc35 100644
--- a/include/xorg/gtest/xorg-gtest.h
+++ b/include/xorg/gtest/xorg-gtest.h
@@ -33,3 +33,9 @@
#ifdef HAVE_EVEMU
#include "evemu/xorg-gtest-device.h"
#endif
+
+#define XORG_TESTCASE(message) \
+ SCOPED_TRACE("\n::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\n" \
+ "TESTCASE:\n" \
+ message \
+ "\n::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\n");