0.7.5.17: whitespace! there is no substantive change between this and
[sbcl/lichteblau.git] / tests / exhaust.impure.lisp
blob0956f29160b4f9db2547abce68ca39be36407ca7
1 ;;;; tests of the system's ability to catch resource exhaustion problems
3 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; more information.
5 ;;;;
6 ;;;; While most of SBCL is derived from the CMU CL system, the test
7 ;;;; files (like this one) were written from scratch after the fork
8 ;;;; from CMU CL.
9 ;;;;
10 ;;;; This software is in the public domain and is provided with
11 ;;;; absolutely no warranty. See the COPYING and CREDITS files for
12 ;;;; more information.
14 (cl:in-package :cl-user)
16 ;;; Prior to sbcl-0.7.1.38, doing something like (RECURSE), even in
17 ;;; safe code, would crash the entire Lisp process. Now it should
18 ;;; signal an error in a context where the soft stack limit has been
19 ;;; relaxed enough that the error can be handled.
20 (locally
21 (declare (optimize safety))
22 (defun recurse () (recurse) (recurse))
23 (ignore-errors (recurse)))
25 ;;; success
26 (quit :unix-status 104)