aboutsummaryrefslogtreecommitdiffstats
path: root/test/src/process-tests.el
diff options
context:
space:
mode:
authorStefan Kangas2020-04-24 15:28:22 +0200
committerStefan Kangas2020-04-24 18:25:13 +0200
commitc52f8863a536c003980c8fcc24dfb48dfb2353a8 (patch)
tree4f446aae70a45ac44f61f42dcf47d27b28c8696e /test/src/process-tests.el
parent85fb94273375fe793ced4404ade6392e38b4c381 (diff)
downloademacs-c52f8863a536c003980c8fcc24dfb48dfb2353a8.tar.gz
emacs-c52f8863a536c003980c8fcc24dfb48dfb2353a8.zip
Use lexical-binding in most src tests
* test/src/charset-tests.el: * test/src/chartab-tests.el: * test/src/cmds-tests.el: * test/src/coding-tests.el (top-level) (generate-ascii-file, generate-mostly-nonascii-file): * test/src/doc-tests.el: * test/src/floatfns-tests.el: * test/src/font-tests.el: * test/src/keymap-tests.el: * test/src/process-tests.el (top-level) (process-test-sentinel-wait-function-working-p) (process-test-stderr-buffer, process-test-stderr-filter): * test/src/textprop-tests.el: * test/src/thread-tests.el: * test/src/timefns-tests.el: * test/src/undo-tests.el: * test/src/xml-tests.el: Use lexical-binding.
Diffstat (limited to 'test/src/process-tests.el')
-rw-r--r--test/src/process-tests.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/src/process-tests.el b/test/src/process-tests.el
index 66a76fd33b8..748afe41d2c 100644
--- a/test/src/process-tests.el
+++ b/test/src/process-tests.el
@@ -1,4 +1,4 @@
1;;; process-tests.el --- Testing the process facilities 1;;; process-tests.el --- Testing the process facilities -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 2013-2020 Free Software Foundation, Inc. 3;; Copyright (C) 2013-2020 Free Software Foundation, Inc.
4 4
@@ -33,7 +33,7 @@
33 (let ((proc (start-process "test" nil "bash" "-c" "exit 20")) 33 (let ((proc (start-process "test" nil "bash" "-c" "exit 20"))
34 (sentinel-called nil) 34 (sentinel-called nil)
35 (start-time (float-time))) 35 (start-time (float-time)))
36 (set-process-sentinel proc (lambda (proc msg) 36 (set-process-sentinel proc (lambda (_proc _msg)
37 (setq sentinel-called t))) 37 (setq sentinel-called t)))
38 (while (not (or sentinel-called 38 (while (not (or sentinel-called
39 (> (- (float-time) start-time) 39 (> (- (float-time) start-time)
@@ -88,7 +88,7 @@
88 :stderr stderr-buffer)) 88 :stderr stderr-buffer))
89 (sentinel-called nil) 89 (sentinel-called nil)
90 (start-time (float-time))) 90 (start-time (float-time)))
91 (set-process-sentinel proc (lambda (proc msg) 91 (set-process-sentinel proc (lambda (_proc _msg)
92 (setq sentinel-called t))) 92 (setq sentinel-called t)))
93 (while (not (or sentinel-called 93 (while (not (or sentinel-called
94 (> (- (float-time) start-time) 94 (> (- (float-time) start-time)
@@ -120,13 +120,13 @@
120 "exit 20")) 120 "exit 20"))
121 :stderr stderr-proc)) 121 :stderr stderr-proc))
122 (start-time (float-time))) 122 (start-time (float-time)))
123 (set-process-filter proc (lambda (proc input) 123 (set-process-filter proc (lambda (_proc input)
124 (push input stdout-output))) 124 (push input stdout-output)))
125 (set-process-sentinel proc (lambda (proc msg) 125 (set-process-sentinel proc (lambda (_proc _msg)
126 (setq sentinel-called t))) 126 (setq sentinel-called t)))
127 (set-process-filter stderr-proc (lambda (proc input) 127 (set-process-filter stderr-proc (lambda (_proc input)
128 (push input stderr-output))) 128 (push input stderr-output)))
129 (set-process-sentinel stderr-proc (lambda (proc input) 129 (set-process-sentinel stderr-proc (lambda (_proc _input)
130 (setq stderr-sentinel-called t))) 130 (setq stderr-sentinel-called t)))
131 (while (not (or sentinel-called 131 (while (not (or sentinel-called
132 (> (- (float-time) start-time) 132 (> (- (float-time) start-time)