diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-03-01 06:45:32 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-03-01 06:45:32 +0000 |
commit | 5072488a950e6775bf1d02db2d4dfc473007ab75 (patch) | |
tree | 5c8b8a3e53f50cdbb9f13dfa00e4983a0b65aac9 /src/or/test.c | |
parent | 3138941e682264dd3d22e28370c4ba0205c65231 (diff) | |
download | tor-5072488a950e6775bf1d02db2d4dfc473007ab75.tar.gz tor-5072488a950e6775bf1d02db2d4dfc473007ab75.zip |
make 'make test' exit(1) if a test fails.
svn:r1190
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; } /* |