aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2010-08-15 14:30:37 +0200
committerKarsten Loesing <karsten.loesing@gmx.net>2010-08-15 14:30:37 +0200
commit0e8513d4c6f54ec56b4009502adf16bdde2108fd (patch)
tree1fa6d7d7cdb69408dc735c930abc1d3fccf62878 /src/test
parent69545efbafaf55f5d6f768268eb73b60547acd64 (diff)
downloadtor-0e8513d4c6f54ec56b4009502adf16bdde2108fd.tar
tor-0e8513d4c6f54ec56b4009502adf16bdde2108fd.tar.gz
Run test_stats in a subprocess.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test.c b/src/test/test.c
index ff166cef2..9a98a1a0a 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),