summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2023-05-13 13:49:07 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2023-05-13 14:30:59 +0200
commit9f856e4cd095c24cf4e6cadbc04efaf533e59f37 (patch)
treee12e307dddab95b24fc8ad2de68b244ea5b0be71 /test
parentc083fa5cf80f711ac43dca1b6582aff1ad526e8e (diff)
downloademacs-9f856e4cd095c24cf4e6cadbc04efaf533e59f37.tar.gz
Use `mutate-constant` as warning identifier
* etc/NEWS: * lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): * lisp/emacs-lisp/bytecomp.el (byte-compile-warnings) (byte-compile-form): * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-test--with-suppressed-warnings): Use the new warning name `mutate-constant` instead of using the somewhat overloaded `suspicious`.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/bytecomp-tests.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el
index 9136a6cd9b3..a8809bda81c 100644
--- a/test/lisp/emacs-lisp/bytecomp-tests.el
+++ b/test/lisp/emacs-lisp/bytecomp-tests.el
@@ -1522,31 +1522,31 @@ literals (Bug#20852)."
(test-suppression
'(defun zot ()
(setcar '(1 2) 3))
- '((suspicious setcar))
+ '((mutate-constant setcar))
"Warning: `setcar' on constant list (arg 1)")
(test-suppression
'(defun zot ()
(aset [1 2] 1 3))
- '((suspicious aset))
+ '((mutate-constant aset))
"Warning: `aset' on constant vector (arg 1)")
(test-suppression
'(defun zot ()
(aset "abc" 1 ?d))
- '((suspicious aset))
+ '((mutate-constant aset))
"Warning: `aset' on constant string (arg 1)")
(test-suppression
'(defun zot (x y)
(nconc x y '(1 2) '(3 4)))
- '((suspicious nconc))
+ '((mutate-constant nconc))
"Warning: `nconc' on constant list (arg 3)")
(test-suppression
'(defun zot ()
(put-text-property 0 2 'prop 'val "abc"))
- '((suspicious put-text-property))
+ '((mutate-constant put-text-property))
"Warning: `put-text-property' on constant string (arg 5)")
)