diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-07-17 18:38:46 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-07-17 18:38:46 +0000 |
commit | d6f2e199243ef6eb4b1b96dbff16793a5fe2c202 (patch) | |
tree | 6b7b809b4e116da86baeedaf37a91e4816abf3a2 /test/tinytest_macros.h | |
parent | 5d71b25b516332af4dec0fe29d44fea28c06ccd0 (diff) | |
download | libevent-d6f2e199243ef6eb4b1b96dbff16793a5fe2c202.tar.gz |
Unit tests for bufferevent_get(fd|_underlying)
svn:r1351
Diffstat (limited to 'test/tinytest_macros.h')
-rw-r--r-- | test/tinytest_macros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/tinytest_macros.h b/test/tinytest_macros.h index e3373d98..d989de99 100644 --- a/test/tinytest_macros.h +++ b/test/tinytest_macros.h @@ -134,6 +134,9 @@ #define tt_uint_op(a,op,b) \ tt_assert_test_type(a,b,#a" "#op" "#b,unsigned long, \ (_val1 op _val2),"%lu") +#define tt_ptr_op(a,op,b) \ + tt_assert_test_type(a,b,#a" "#op" "#b,void*, \ + (_val1 op _val2),"%p") #define tt_str_op(a,op,b) \ tt_assert_test_type(a,b,#a" "#op" "#b,const char *, \ |