Skip to content

Commit 4efa808

Browse files
author
Mike Travers
committed
more of the same
1 parent aa56a79 commit 4efa808

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lisp-unit.lisp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,16 +487,18 @@ defclass junit-runner, interactive-runner, etc, and have the above be methods.
487487
(let ((*test* test)
488488
(*test-runner* runner)
489489
(thunk (get-test-thunk-n test)))
490+
(format t "~%Running test ~A" test)
490491
(prog () ; ((start-time (get-internal-real-time)))
491492
(handler-bind
492493
((error #'(lambda (e)
493494
(handle-error runner test e)
494495
(if (use-debugger-p e) e (go exit)))))
495496
(unless thunk
496497
(error "Test ~S not found" test))
497-
(funcall thunk))
498+
(acl-compat.mp:with-timeout (30 (error "Timed out"))
499+
(funcall thunk)))
498500
exit
499-
;(return (values *test-count* *pass-count* error-count (- (get-internal-real-time) start-time)))
501+
;(return (values *test-count* *pass-count* error-count (- (get-internal-real-time) start-time)))
500502
)))
501503

502504
;;; methodize???

mt-utils.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ corresponding function."
871871
(find-symbol (symbol-name s) user))
872872
(shadowing-import s user)
873873
(export s user)))
874-
(use-package usedq user))
874+
(use-package used user))
875875

876876

877877
;;; Time

0 commit comments

Comments
 (0)