Commits

Matt Oswald  committed 91ef7f3

added SKIP("reason") macro as a shortcut for ATTRIBUTES(("Skip", "reason"))

  • Participants
  • Parent commits 8ad39d6

Comments (0)

Files changed (1)

File xUnit++/xUnit++/xUnitMacros.h

     } \
     namespace XU_UNIQUE_ATT_NS
 
+#define SKIP(reason) \
+    namespace XU_UNIQUE_ATT_NS { \
+        namespace xUnitAttributes { \
+            inline xUnitpp::AttributeCollection Attributes() \
+            { \
+                xUnitpp::AttributeCollection attributes; \
+                XU_ATTRIBUTES(("Skip", reason)) \
+                attributes.sort(); \
+                return attributes; \
+            } \
+        } \
+    } \
+    namespace XU_UNIQUE_ATT_NS
+
 #define SUITE(SuiteName) \
     namespace { \
         namespace xUnitSuite { \