Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 710725825
  • Loading branch information
common-lisp-dev-copybara authored and copybara-github committed Jan 1, 2025
1 parent ab5d5aa commit 282b708
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions main.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
(defpackage :ace.test.main
(:use :cl)
#+bordeaux-threads (:import-from #:bordeaux-threads #:make-thread #:all-threads)
(:local-nicknames (#:thread #:ace.core.thread)
#+google3 (#:flag #:ace.flag)))
(:local-nicknames #+google3 (#:flag #:ace.flag)))

(in-package :ace.test.main)

Expand All @@ -31,7 +30,12 @@
(flet ((timeout-watcher ()
(sleep (- timeout 5))
(format *error-output* "INFO: The test is about to timeout.~%")
(thread:print-backtraces)))
#+sbcl
(let ((*print-pretty* nil))
(dolist (pair (sb-debug:backtrace-all-threads))
;; No need for a backtrace of the timeout watcher
(unless (eq (car pair) sb-thread:*current-thread*)
(format *debug-io* "~&Backtrace for ~A:~%~A~%" (car pair) (cdr pair)))))))
(make-thread #'timeout-watcher :name "Timeout-Watcher")))))

#+google3
Expand Down

0 comments on commit 282b708

Please sign in to comment.