aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2018-11-26 07:16:28 +0100
committerNick Mathewson <nickm@torproject.org>2018-12-17 16:39:28 -0500
commit6e508e9eb48c88f94cd9431aca6ac5743beb41d5 (patch)
tree4710d66eb070969cfeb83e243d270a133e9b00d6
parentccc1963890bc7448383cd4c45370139697973d64 (diff)
downloadtor-6e508e9eb48c88f94cd9431aca6ac5743beb41d5.tar.gz
tor-6e508e9eb48c88f94cd9431aca6ac5743beb41d5.zip
Fix tests on kqueue() based platforms.
This patch disables fork()'ing of the slow process tests. This fixes the tests on the MacOS and other kqueue() based platforms. Without this patch the main loop exits eearly with EBADF as error. See: https://bugs.torproject.org/28179
-rw-r--r--src/test/test_process_slow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_process_slow.c b/src/test/test_process_slow.c
index b4c5a2d5e2..2ec9ff28a0 100644
--- a/src/test/test_process_slow.c
+++ b/src/test/test_process_slow.c
@@ -324,7 +324,7 @@ test_callbacks_terminate(void *arg)
}
struct testcase_t slow_process_tests[] = {
- { "callbacks", test_callbacks, TT_FORK, NULL, NULL },
- { "callbacks_terminate", test_callbacks_terminate, TT_FORK, NULL, NULL },
+ { "callbacks", test_callbacks, 0, NULL, NULL },
+ { "callbacks_terminate", test_callbacks_terminate, 0, NULL, NULL },
END_OF_TESTCASES
};