0.9.2.43:
[sbcl.git] / tests / smoke.impure.lisp
index c07bc1b..9a77d0b 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; While most of SBCL is derived from the CMU CL system, the test
 ;;;; files (like this one) were written from scratch after the fork
 ;;;; from CMU CL.
-;;;; 
+;;;;
 ;;;; This software is in the public domain and is provided with
 ;;;; absolutely no warranty. See the COPYING and CREDITS files for
 ;;;; more information.
 (assert (typep (in-package :cl-user) 'package))
 
 ;;; PROFILE should run without obvious breakage
-(defun profiled-fun ()
-  (random 1d0))
-(profile profiled-fun)
-(loop repeat 100000 do (profiled-fun))
-(report)
+(progn
+  (defun profiled-fun ()
+    (random 1d0))
+  (profile profiled-fun)
+  (loop repeat 100000 do (profiled-fun))
+  (report))
 
-;;; DEFCONSTANT should behave as the documentation specifies,
+;;; Defconstant should behave as the documentation specifies,
 ;;; including documented condition type.
 (defun oidentity (x) x)
 (defconstant +const+ 1)
 (assert (= (oidentity +const+) 1))
 (handler-bind
     ((sb-ext:defconstant-uneql
-        (lambda (c) (abort c))))
+         (lambda (c) (abort c))))
   (defconstant +const+ 3))
 (assert (= (oidentity +const+) 1))
 (handler-bind
     ((sb-ext:defconstant-uneql
-        (lambda (c) (continue c))))
+         (lambda (c) (continue c))))
   (defconstant +const+ 3))
 (assert (= (oidentity +const+) 3))