diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-01-31 07:32:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-01-31 07:32:00 +0000 |
commit | e6ba208ba30fd22f52508a865f448c24ffaaed96 (patch) | |
tree | aba084e7c4c3d456661dfda9169eb96497446ae5 /test/tinytest_macros.h | |
parent | 52eb4951302554dd696d6a0120ad5d3f6cffb7bb (diff) | |
download | libevent-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.h | 7 |
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)) { \ |