[or-cvs] [tor/master 4/7] Run test_stats in a subprocess.

nickm at torproject.org nickm at torproject.org
Mon Aug 16 01:18:13 UTC 2010


Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Sun, 15 Aug 2010 14:30:37 +0200
Subject: Run test_stats in a subprocess.
Commit: 0e8513d4c6f54ec56b4009502adf16bdde2108fd

---
 src/test/test.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/test/test.c b/src/test/test.c
index ff166ce..9a98a1a 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -1233,6 +1233,8 @@ const struct testcase_setup_t legacy_setup = {
       test_ ## group ## _ ## name }
 #define DISABLED(name)                                                  \
   { #name, legacy_test_helper, TT_SKIP, &legacy_setup, name }
+#define FORK(name)                                                      \
+  { #name, legacy_test_helper, TT_FORK, &legacy_setup, test_ ## name }
 
 static struct testcase_t test_array[] = {
   ENT(buffers),
@@ -1241,7 +1243,7 @@ static struct testcase_t test_array[] = {
   ENT(policies),
   ENT(rend_fns),
   ENT(geoip),
-  ENT(stats),
+  FORK(stats),
 
   DISABLED(bench_aes),
   DISABLED(bench_dmap),
-- 
1.7.1




More information about the tor-commits mailing list