]> granicus.if.org Git - libevent/commitdiff
test: avoid regress hanging in macOS
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Wed, 16 Aug 2017 23:52:33 +0000 (16:52 -0700)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sun, 10 Sep 2017 22:48:35 +0000 (01:48 +0300)
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

test/regress.c

index e4ce98c0a593d61221a304bcc97afe69c6d5c790..f86963fa147e1466008350e0f3c8d40468f6364e 100644 (file)
@@ -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