Skip to content

Commit d8a02df

Browse files
committed
Avoid lambda functions on install-error-handler during argparse tests
1 parent f0b7cdc commit d8a02df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/argparse.l

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
(defun write-tmp-file (fname send-lst)
1717
`(with-open-file (test-file ,fname :direction :output :if-exists :supersede)
18-
(princ-line "(lisp::install-error-handler #'(lambda (&rest args) (exit 1)))" test-file)
18+
(princ-line "(defun exit-on-error (&rest args) (exit 1))" test-file)
19+
(princ-line "(lisp::install-error-handler 'exit-on-error)" test-file)
1920
(princ-line "(require :argparse \"lib/llib/argparse.l\")" test-file)
2021
(terpri test-file)
2122
(princ-line "(setq argparse (instantiate argparse:argument-parser))" test-file)

0 commit comments

Comments
 (0)