mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Prefer skip-unless in one eieio test
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test-01-mix-alloc-initarg): Use skip-unless to correctly mark the test as skipped.
This commit is contained in:
parent
3cf11a3c61
commit
2bfea5fd1f
1 changed files with 11 additions and 11 deletions
|
|
@ -139,19 +139,19 @@
|
|||
|
||||
(ert-deftest eieio-test-01-mix-alloc-initarg ()
|
||||
;; Only run this test if the message framework thingy works.
|
||||
(when (and (message "foo") (string= "foo" (current-message)))
|
||||
(skip-unless (and (message "foo") (string= "foo" (current-message))))
|
||||
|
||||
;; Defining this class should generate a warning(!) message that
|
||||
;; you should not mix :initarg with class allocated slots.
|
||||
(defclass class-alloc-initarg ()
|
||||
((throwwarning :initarg :throwwarning
|
||||
:allocation :class))
|
||||
"Throw a warning mixing allocation class and an initarg.")
|
||||
;; Defining this class should generate a warning(!) message that
|
||||
;; you should not mix :initarg with class allocated slots.
|
||||
(defclass class-alloc-initarg ()
|
||||
((throwwarning :initarg :throwwarning
|
||||
:allocation :class))
|
||||
"Throw a warning mixing allocation class and an initarg.")
|
||||
|
||||
;; Check that message is there
|
||||
(should (current-message))
|
||||
(should (string-match "Class allocated slots do not need :initarg"
|
||||
(current-message)))))
|
||||
;; Check that message is there
|
||||
(should (current-message))
|
||||
(should (string-match "Class allocated slots do not need :initarg"
|
||||
(current-message))))
|
||||
|
||||
(defclass abstract-class ()
|
||||
((some-slot :initarg :some-slot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue