projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UPGRADED-ARRAY-ELEMENT-TYPE: more thoroughly signal errors on unknown types.
[sbcl.git]
/
tests
/
compare-and-swap.impure.lisp
diff --git
a/tests/compare-and-swap.impure.lisp
b/tests/compare-and-swap.impure.lisp
index
e1dc09b
..
e16e0cb
100644
(file)
--- a/
tests/compare-and-swap.impure.lisp
+++ b/
tests/compare-and-swap.impure.lisp
@@
-3,7
+3,7
@@
(defstruct xxx yyy)
(macrolet ((test (init op)
(defstruct xxx yyy)
(macrolet ((test (init op)
- `(with-test (:name (:cas :basics ,op))
+ `(with-test (:name (:cas :basics ,(intern (symbol-name op) "KEYWORD")))
(let ((x ,init)
(y (list 'foo))
(z (list 'bar)))
(let ((x ,init)
(y (list 'foo))
(z (list 'bar)))
@@
-120,6
+120,10
@@
(defstruct box
(word 0 :type sb-vm:word))
(defstruct box
(word 0 :type sb-vm:word))
+;; Have the following tests check that CAS access to the superclass
+;; works in the presence of a subclass sharing the conc-name.
+(defstruct (subbox (:include box) (:conc-name "BOX-")))
+
(defun inc-box (box n)
(declare (fixnum n) (box box))
(loop repeat n
(defun inc-box (box n)
(declare (fixnum n) (box box))
(loop repeat n
@@
-427,7
+431,7
@@
(assert (eq :ok (cas bar :ok nil)))
(assert (not (cas bar nil t)))))
(assert (eq :ok (cas bar :ok nil)))
(assert (not (cas bar nil t)))))
-(with-test (:name atomic-push
+(with-test (:name :atomic-push
:skipped-on '(not :sb-thread))
(let ((store (cons nil nil))
(n 100000))
:skipped-on '(not :sb-thread))
(let ((store (cons nil nil))
(n 100000))