(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)))
(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
(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))