summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>2017-08-16 16:52:33 -0700
committerAzat Khuzhin <a3at.mail@gmail.com>2017-09-11 01:48:35 +0300
commita86f89d333d870e6714bd28c695ba1774df3d7f5 (patch)
tree0964fd1e581aede68cf91983a8ced5752395aebf /test
parent506df426dbeb0187bbd3654bd286b4100628fb16 (diff)
downloadlibevent-a86f89d333d870e6714bd28c695ba1774df3d7f5.tar.gz
test: avoid regress hanging in macOS
a backtrace of the process without this patch : * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP * frame #0: 0x00007fffb1fb7d96 libsystem_kernel.dylib`kevent + 10 frame #1: 0x0000000108ed0a58 libevent-2.2.1.dylib`kq_dispatch + 696 frame #2: 0x0000000108ec53d8 libevent-2.2.1.dylib`event_base_loop + 696 frame #3: 0x0000000108e1763b regress`test_fork + 1931 frame #4: 0x0000000108e5c7ad regress`run_legacy_test_fn + 45 frame #5: 0x0000000108e690aa regress`testcase_run_one + 858 frame #6: 0x0000000108e6954f regress`tinytest_main + 495 frame #7: 0x0000000108e5c94b regress`main + 171 frame #8: 0x00007fffb1e88235 libdyld.dylib`start + 1 frame #9: 0x00007fffb1e88235 libdyld.dylib`start + 1 Issue: #546
Diffstat (limited to 'test')
-rw-r--r--test/regress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/regress.c b/test/regress.c
index e4ce98c0..f86963fa 100644
--- a/test/regress.c
+++ b/test/regress.c
@@ -3445,7 +3445,7 @@ struct testcase_t main_testcases[] = {
BASIC(active_by_fd, TT_FORK|TT_NEED_BASE|TT_NEED_SOCKETPAIR),
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(__APPLE__)
LEGACY(fork, TT_ISOLATED),
#endif
#ifdef EVENT__HAVE_PTHREADS