diff options
Diffstat (limited to 'test')
5 files changed, 29 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-resources/warn-make-process-missing-keyword-arg.el b/test/lisp/emacs-lisp/bytecomp-resources/warn-make-process-missing-keyword-arg.el new file mode 100644 index 00000000000..9369e78ff54 --- /dev/null +++ b/test/lisp/emacs-lisp/bytecomp-resources/warn-make-process-missing-keyword-arg.el | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | ;;; -*- lexical-binding: t -*- | ||
| 2 | (defun foo () | ||
| 3 | (make-process :name "ls")) | ||
diff --git a/test/lisp/emacs-lisp/bytecomp-resources/warn-make-process-missing-keyword-value.el b/test/lisp/emacs-lisp/bytecomp-resources/warn-make-process-missing-keyword-value.el new file mode 100644 index 00000000000..4226349afef --- /dev/null +++ b/test/lisp/emacs-lisp/bytecomp-resources/warn-make-process-missing-keyword-value.el | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | ;;; -*- lexical-binding: t -*- | ||
| 2 | (defun foo () | ||
| 3 | (make-process :name "ls" :command)) | ||
diff --git a/test/lisp/emacs-lisp/bytecomp-resources/warn-make-process-repeated-keyword-arg.el b/test/lisp/emacs-lisp/bytecomp-resources/warn-make-process-repeated-keyword-arg.el new file mode 100644 index 00000000000..18250f14ee9 --- /dev/null +++ b/test/lisp/emacs-lisp/bytecomp-resources/warn-make-process-repeated-keyword-arg.el | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | ;;; -*- lexical-binding: t -*- | ||
| 2 | (defun foo () | ||
| 3 | (make-process :name "ls" :command "ls" :name "ls")) | ||
diff --git a/test/lisp/emacs-lisp/bytecomp-resources/warn-make-process-unknown-keyword-arg.el b/test/lisp/emacs-lisp/bytecomp-resources/warn-make-process-unknown-keyword-arg.el new file mode 100644 index 00000000000..4721035780b --- /dev/null +++ b/test/lisp/emacs-lisp/bytecomp-resources/warn-make-process-unknown-keyword-arg.el | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | ;;; -*- lexical-binding: t -*- | ||
| 2 | (defun foo () | ||
| 3 | (make-process :name "ls" :command "ls" | ||
| 4 | :coding-system 'binary)) | ||
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el index 19e08e8d199..26325c1ef11 100644 --- a/test/lisp/emacs-lisp/bytecomp-tests.el +++ b/test/lisp/emacs-lisp/bytecomp-tests.el | |||
| @@ -1204,6 +1204,22 @@ byte-compiled. Run with dynamic binding." | |||
| 1204 | "nowarn-inline-after-defvar.el" | 1204 | "nowarn-inline-after-defvar.el" |
| 1205 | "Lexical argument shadows" 'reverse) | 1205 | "Lexical argument shadows" 'reverse) |
| 1206 | 1206 | ||
| 1207 | (bytecomp--define-warning-file-test | ||
| 1208 | "warn-make-process-missing-keyword-arg.el" | ||
| 1209 | "called without required keyword argument :command") | ||
| 1210 | |||
| 1211 | (bytecomp--define-warning-file-test | ||
| 1212 | "warn-make-process-unknown-keyword-arg.el" | ||
| 1213 | "called with unknown keyword argument :coding-system") | ||
| 1214 | |||
| 1215 | (bytecomp--define-warning-file-test | ||
| 1216 | "warn-make-process-repeated-keyword-arg.el" | ||
| 1217 | "called with repeated keyword argument :name") | ||
| 1218 | |||
| 1219 | (bytecomp--define-warning-file-test | ||
| 1220 | "warn-make-process-missing-keyword-value.el" | ||
| 1221 | "missing value for keyword argument :command") | ||
| 1222 | |||
| 1207 | 1223 | ||
| 1208 | ;;;; Macro expansion. | 1224 | ;;;; Macro expansion. |
| 1209 | 1225 | ||