aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-06-14 01:39:23 +0000
committerNick Mathewson <nickm@torproject.org>2003-06-14 01:39:23 +0000
commit3b5dc72648c85d0d21cb9d0322e8df17446750e1 (patch)
tree507a0c310f0e491d4c1ddcce61d2d44cc417d0e2 /src/or
parentdebfe65fafcf5b0f0efb5c53bdb77ed3bbe1853c (diff)
downloadtor-3b5dc72648c85d0d21cb9d0322e8df17446750e1.tar
tor-3b5dc72648c85d0d21cb9d0322e8df17446750e1.tar.gz
Dont test handshakes in an infinite loop
svn:r324
Diffstat (limited to 'src/or')
-rw-r--r--src/or/test.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 512e13f12..7cb79ac08 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -596,8 +596,9 @@ main(int c, char**v) {
#endif
log(LOG_ERR,NULL); /* make logging quieter */
+ crypto_seed_rng();
+
setup_directory();
-#ifndef DEBUG_ONION_SKINS
puts("========================== Buffers =========================");
test_buffers();
puts("\n========================== Crypto ==========================");
@@ -606,12 +607,7 @@ main(int c, char**v) {
puts("\n========================= Util ============================");
test_util();
puts("\n========================= Onion Skins =====================");
-#endif
- crypto_seed_rng();
- while(1) {
- test_onion_handshake();
- fflush(NULL);
- }
+ test_onion_handshake();
puts("\n========================= Directory Formats ===============");
test_dir_format();
puts("");