diff options
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c index 48978b6495..a8b4d90b10 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -15,6 +15,8 @@ #include "or.h" #include "../common/test.h" +int have_failed = 0; + void dump_hex(char *s, int len) { @@ -715,7 +717,11 @@ main(int c, char**v){ puts("\n========================= Directory Formats ==============="); test_dir_format(); puts(""); - return 0; + + if (have_failed) + return 1; + else + return 0; } /* |