New predicate THREAD-EPHEMERAL-P for certain system threads
[sbcl.git] / tests / test-util.lisp
index 43bafa0..1d44174 100644 (file)
@@ -72,7 +72,8 @@
                     (dolist (thread (sb-thread:list-all-threads))
                       (unless (or (not (sb-thread:thread-alive-p thread))
                                   (eql thread sb-thread:*current-thread*)
-                                  (member thread ,threads))
+                                  (member thread ,threads)
+                                  (sb-thread:thread-emphemeral-p thread))
                         (setf any-leftover thread)
                         (ignore-errors (sb-thread:terminate-thread thread))))
                     (when any-leftover