Changeset 3279
- Timestamp:
- 06/17/08 07:00:25 (7 months ago)
- Files:
-
- trunk/projects/bos/test/allocation.lisp (modified) (7 diffs)
- trunk/projects/bos/test/fixtures.lisp (modified) (2 diffs)
- trunk/projects/bos/test/web/drakma-requests.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/projects/bos/test/allocation.lisp
r3277 r3279 69 69 70 70 (test allocation-area.two-areas 71 (with-fixture empty-store ()71 (with-fixture initial-bos-store () 72 72 (let ((snapshot nil) (bypass t)) 73 73 (declare (ignorable snapshot bypass)) … … 92 92 93 93 (test allocation-area.auto-activation.2 94 (with-fixture empty-store ()94 (with-fixture initial-bos-store () 95 95 (let* ((area1 (make-allocation-rectangle 0 0 8 8)) 96 96 (area2 (make-allocation-rectangle 10 10 8 8)) … … 109 109 (test allocation-area.auto-activation.3 110 110 (dolist (m2-count '(1000 100)) 111 (with-fixture empty-store ()111 (with-fixture initial-bos-store () 112 112 (let* ((area1 (make-allocation-rectangle 0 0 8 8)) 113 113 (area2 (make-allocation-rectangle 10 10 8 8)) … … 136 136 :elements (gen-integer :min 1 :max 20))) 137 137 (n (gen-integer :min 1 :max 100))) 138 (with-fixture empty-store ()138 (with-fixture initial-bos-store () 139 139 (let* ((areas (make-allocation-areas allocation-area-widths)) 140 140 (sponsor (make-sponsor :login "test-sponsor"))) … … 156 156 (flet ((m2p (obj) 157 157 (typep obj 'm2))) 158 (with-fixture empty-store ()158 (with-fixture initial-bos-store () 159 159 (let* ((area1 (make-allocation-rectangle 0 0 8 8)) 160 160 (area2 (make-allocation-rectangle 10 10 9 9))) … … 172 172 (typep obj 'm2))) 173 173 (for-all ((n (gen-integer :min 1 :max 290))) 174 (with-fixture empty-store ()174 (with-fixture initial-bos-store () 175 175 (let* ((area1 (make-allocation-rectangle 0 0 8 8)) 176 176 (area2 (make-allocation-rectangle 10 10 9 9)) … … 186 186 187 187 (test allocation-area.delete 188 (with-fixture empty-store ()188 (with-fixture initial-bos-store () 189 189 (let ((area (make-allocation-rectangle 0 0 10 10)) 190 190 (sponsor (make-sponsor :login "testuser")) trunk/projects/bos/test/fixtures.lisp
r3277 r3279 43 43 ,@body)) 44 44 45 (def-fixture empty-store ()45 (def-fixture initial-bos-store () 46 46 (unwind-protect 47 47 (progn … … 63 63 name)) 64 64 (collect `(test ,test-name 65 (with-fixture empty-store ()65 (with-fixture initial-bos-store () 66 66 (let ((snapshot ,(getf config :snapshot)) 67 67 (bypass ,(getf config :bypass))) trunk/projects/bos/test/web/drakma-requests.lisp
r3277 r3279 4 4 (defmacro with-bos-test-server ((port-var) &body body) 5 5 (check-type port-var symbol) 6 `(with-fixture empty-store ()6 `(with-fixture initial-bos-store () 7 7 (let* ((,port-var (+ 70000 (random 5253))) 8 8 (server (bos.web::init :port ,port-var
