diff options
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/or/test.c b/src/or/test.c index 294dfddea..49877f5d5 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -2,7 +2,31 @@ /* See LICENSE for licensing information */ /* $Id$ */ +#include "or.h" +#include "../common/test.h" + +void +test_buffers() { + char *buf; + int buflen, buf_datalen; + + if (buf_new(&buf, &buflen, &buf_datalen)) { + test_fail(); + } + + test_eq(buflen, MAX_BUF_SIZE); + test_eq(buf_datalen, 0); + + + + buf_free(buf); +} + + int main(int c, char**v) { + test_buffers(); + + printf("\n"); return 0; } |