Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Karsten Poeck
ansi-test
Commits
9562c12f
Commit
9562c12f
authored
Mar 03, 2003
by
pfdietz
Browse files
Error case tests for invoke-debugger
parent
d3c02466
Changes
1
Hide whitespace changes
Inline
Side-by-side
ansi-tests/invoke-debugger.lsp
View file @
9562c12f
...
...
@@ -21,3 +21,33 @@
(invoke-debugger cnd)))
'bad)
good)
(deftest invoke-debugger.error.1
(classify-error (invoke-debugger))
program-error)
(deftest invoke-debugger.error.2
(classify-error (invoke-debugger (make-condition 'simple-error) nil))
program-error)
;;; If the debugger hook function expects the wrong number
;;; of arguments, a program-error should be thrown in safe code
;;; This error is thrown 'prior to entry to the standard debugger'.
(deftest invoke-debugger.error.3
(classify-error
(let ((*debugger-hook* #'(lambda () nil)))
(invoke-debugger (make-condition 'simple-error))))
program-error)
(deftest invoke-debugger.error.4
(classify-error
(let ((*debugger-hook* #'(lambda (c) c)))
(invoke-debugger (make-condition 'simple-error))))
program-error)
(deftest invoke-debugger.error.5
(classify-error
(let ((*debugger-hook* #'(lambda (c hook x) (list c hook x))))
(invoke-debugger (make-condition 'simple-error))))
program-error)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment