summaryrefslogtreecommitdiff
path: root/test/tinytest_macros.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-01-31 07:32:00 +0000
committerNick Mathewson <nickm@torproject.org>2009-01-31 07:32:00 +0000
commite6ba208ba30fd22f52508a865f448c24ffaaed96 (patch)
treeaba084e7c4c3d456661dfda9169eb96497446ae5 /test/tinytest_macros.h
parent52eb4951302554dd696d6a0120ad5d3f6cffb7bb (diff)
downloadlibevent-e6ba208ba30fd22f52508a865f448c24ffaaed96.tar.gz
Tinytest update: mostly just to allow test skipping.
svn:r1080
Diffstat (limited to 'test/tinytest_macros.h')
-rw-r--r--test/tinytest_macros.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/tinytest_macros.h b/test/tinytest_macros.h
index d56fa75d..b1a4729f 100644
--- a/test/tinytest_macros.h
+++ b/test/tinytest_macros.h
@@ -75,6 +75,13 @@
#define tt_fail_msg(msg) TT_FAIL((msg))
#define tt_fail() tt_fail_msg("(Failed.)")
+/* End the current test, and indicate we are skipping it. */
+#define tt_skip() \
+ TT_STMT_BEGIN \
+ _tinytest_set_test_skipped(); \
+ TT_EXIT_TEST_FUNCTION; \
+ TT_STMT_END
+
#define _tt_want(b, msg, fail) \
TT_STMT_BEGIN \
if (!(b)) { \