$ HOME=/nonexistent EMACSLOADPATH= LC_ALL=C EMACS_TEST_DIRECTORY=/d/Source/emacs/emacs/test "../src/emacs" -batch --no-site-file --no-site-lisp -L ";../../emacs/test" -l ert -l src/thread-tests.el --eval "(ert-run-tests-batch-and-exit (quote (not (tag :expensive-test))))"
Running 28 tests (2017-10-09 21:45:59+0200)
passed 1/28 thread-errors
passed 2/28 thread-signal-early
passed 3/28 thread-sticky-point
passed 4/28 threads-alive
passed 5/28 threads-all-threads
passed 6/28 threads-basic
passed 7/28 threads-condvar-mutex
passed 8/28 threads-condvar-name
passed 9/28 threads-condvar-name-2
passed 10/28 threads-condvar-type
passed 11/28 threads-condvar-wait
passed 12/28 threads-condvarp
passed 13/28 threads-condvarp-2
passed 14/28 threads-io-switch
passed 15/28 threads-is-one
passed 16/28 threads-join
passed 17/28 threads-join-self
passed 18/28 threads-let-binding
Segmentation fault
This is with the latest emacs-26 sources.