aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
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
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')
-rw-r--r--test/src/charset-tests.el2
-rw-r--r--test/src/chartab-tests.el2
-rw-r--r--test/src/cmds-tests.el2
-rw-r--r--test/src/coding-tests.el10
-rw-r--r--test/src/decompress-tests.el2
-rw-r--r--test/src/doc-tests.el2
-rw-r--r--test/src/floatfns-tests.el2
-rw-r--r--test/src/font-tests.el2
-rw-r--r--test/src/keymap-tests.el2
-rw-r--r--test/src/process-tests.el14
-rw-r--r--test/src/textprop-tests.el2
-rw-r--r--test/src/thread-tests.el2
-rw-r--r--test/src/timefns-tests.el2
-rw-r--r--test/src/undo-tests.el2
-rw-r--r--test/src/xml-tests.el2
15 files changed, 25 insertions, 25 deletions
diff --git a/test/src/charset-tests.el b/test/src/charset-tests.el
index 01a68c21a52..9a1d0a46f91 100644
--- a/test/src/charset-tests.el
+++ b/test/src/charset-tests.el
@@ -1,4 +1,4 @@
1;;; charset-tests.el --- Tests for charset.c 1;;; charset-tests.el --- Tests for charset.c -*- lexical-binding: t -*-
2 2
3;; Copyright 2017-2020 Free Software Foundation, Inc. 3;; Copyright 2017-2020 Free Software Foundation, Inc.
4 4
diff --git a/test/src/chartab-tests.el b/test/src/chartab-tests.el
index da320e33b51..0ddea2b338c 100644
--- a/test/src/chartab-tests.el
+++ b/test/src/chartab-tests.el
@@ -1,4 +1,4 @@
1;;; chartab-tests.el --- Tests for char-tab.c 1;;; chartab-tests.el --- Tests for char-tab.c -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 2016-2020 Free Software Foundation, Inc. 3;; Copyright (C) 2016-2020 Free Software Foundation, Inc.
4 4
diff --git a/test/src/cmds-tests.el b/test/src/cmds-tests.el
index 8604d346109..e98e5784609 100644
--- a/test/src/cmds-tests.el
+++ b/test/src/cmds-tests.el
@@ -1,4 +1,4 @@
1;;; cmds-tests.el --- Testing some Emacs commands 1;;; cmds-tests.el --- Testing some Emacs commands -*- 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
diff --git a/test/src/coding-tests.el b/test/src/coding-tests.el
index a741e233d39..c438ae22ce3 100644
--- a/test/src/coding-tests.el
+++ b/test/src/coding-tests.el
@@ -1,4 +1,4 @@
1;;; coding-tests.el --- tests for text encoding and decoding 1;;; coding-tests.el --- tests for text encoding and decoding -*- 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
@@ -296,7 +296,7 @@
296;;; decoder, not for regression testing. 296;;; decoder, not for regression testing.
297 297
298(defun generate-ascii-file () 298(defun generate-ascii-file ()
299 (dotimes (i 100000) 299 (dotimes (_i 100000)
300 (insert-char ?a 80) 300 (insert-char ?a 80)
301 (insert "\n"))) 301 (insert "\n")))
302 302
@@ -309,13 +309,13 @@
309 (insert "\n"))) 309 (insert "\n")))
310 310
311(defun generate-mostly-nonascii-file () 311(defun generate-mostly-nonascii-file ()
312 (dotimes (i 30000) 312 (dotimes (_i 30000)
313 (insert-char ?a 80) 313 (insert-char ?a 80)
314 (insert "\n")) 314 (insert "\n"))
315 (dotimes (i 20000) 315 (dotimes (_i 20000)
316 (insert-char ?À 80) 316 (insert-char ?À 80)
317 (insert "\n")) 317 (insert "\n"))
318 (dotimes (i 10000) 318 (dotimes (_i 10000)
319 (insert-char ?あ 80) 319 (insert-char ?あ 80)
320 (insert "\n"))) 320 (insert "\n")))
321 321
diff --git a/test/src/decompress-tests.el b/test/src/decompress-tests.el
index 46fd26635c9..0a328396818 100644
--- a/test/src/decompress-tests.el
+++ b/test/src/decompress-tests.el
@@ -1,4 +1,4 @@
1;;; decompress-tests.el --- Test suite for decompress. 1;;; decompress-tests.el --- Test suite for decompress. -*- 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
diff --git a/test/src/doc-tests.el b/test/src/doc-tests.el
index b6026e79c65..50cf0144b80 100644
--- a/test/src/doc-tests.el
+++ b/test/src/doc-tests.el
@@ -1,4 +1,4 @@
1;;; doc-tests.el --- Tests for doc.c 1;;; doc-tests.el --- Tests for doc.c -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 2016-2020 Free Software Foundation, Inc. 3;; Copyright (C) 2016-2020 Free Software Foundation, Inc.
4 4
diff --git a/test/src/floatfns-tests.el b/test/src/floatfns-tests.el
index c1c2c8996a7..8c56674d4fd 100644
--- a/test/src/floatfns-tests.el
+++ b/test/src/floatfns-tests.el
@@ -1,4 +1,4 @@
1;;; floatfns-tests.el --- tests for floating point operations 1;;; floatfns-tests.el --- tests for floating point operations -*- lexical-binding: t -*-
2 2
3;; Copyright 2017-2020 Free Software Foundation, Inc. 3;; Copyright 2017-2020 Free Software Foundation, Inc.
4 4
diff --git a/test/src/font-tests.el b/test/src/font-tests.el
index 73c2846b032..cfc6f4c31b7 100644
--- a/test/src/font-tests.el
+++ b/test/src/font-tests.el
@@ -1,4 +1,4 @@
1;;; font-tests.el --- Test suite for font-related functions. 1;;; font-tests.el --- Test suite for font-related functions. -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 2011-2020 Free Software Foundation, Inc. 3;; Copyright (C) 2011-2020 Free Software Foundation, Inc.
4 4
diff --git a/test/src/keymap-tests.el b/test/src/keymap-tests.el
index dbf0a7d1229..75f8c0f092e 100644
--- a/test/src/keymap-tests.el
+++ b/test/src/keymap-tests.el
@@ -1,4 +1,4 @@
1;;; keymap-tests.el --- Test suite for src/keymap.c 1;;; keymap-tests.el --- Test suite for src/keymap.c -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 2015-2020 Free Software Foundation, Inc. 3;; Copyright (C) 2015-2020 Free Software Foundation, Inc.
4 4
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)
diff --git a/test/src/textprop-tests.el b/test/src/textprop-tests.el
index 7333444df0b..365d2c7a7b7 100644
--- a/test/src/textprop-tests.el
+++ b/test/src/textprop-tests.el
@@ -1,4 +1,4 @@
1;;; textprop-tests.el --- Test suite for text properties. 1;;; textprop-tests.el --- Test suite for text properties. -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 2015-2020 Free Software Foundation, Inc. 3;; Copyright (C) 2015-2020 Free Software Foundation, Inc.
4 4
diff --git a/test/src/thread-tests.el b/test/src/thread-tests.el
index 5d85fc74e50..df34a2b66eb 100644
--- a/test/src/thread-tests.el
+++ b/test/src/thread-tests.el
@@ -1,4 +1,4 @@
1;;; threads.el --- tests for threads. 1;;; threads.el --- tests for threads. -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 2012-2020 Free Software Foundation, Inc. 3;; Copyright (C) 2012-2020 Free Software Foundation, Inc.
4 4
diff --git a/test/src/timefns-tests.el b/test/src/timefns-tests.el
index b24d44335e5..51dd1d1aeb5 100644
--- a/test/src/timefns-tests.el
+++ b/test/src/timefns-tests.el
@@ -1,4 +1,4 @@
1;;; timefns-tests.el -- tests for timefns.c 1;;; timefns-tests.el -- tests for timefns.c -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 2016-2020 Free Software Foundation, Inc. 3;; Copyright (C) 2016-2020 Free Software Foundation, Inc.
4 4
diff --git a/test/src/undo-tests.el b/test/src/undo-tests.el
index 995e4365e12..13335a9bb10 100644
--- a/test/src/undo-tests.el
+++ b/test/src/undo-tests.el
@@ -1,4 +1,4 @@
1;;; undo-tests.el --- Tests of primitive-undo 1;;; undo-tests.el --- Tests of primitive-undo -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 2012-2020 Free Software Foundation, Inc. 3;; Copyright (C) 2012-2020 Free Software Foundation, Inc.
4 4
diff --git a/test/src/xml-tests.el b/test/src/xml-tests.el
index 02a52e9115d..d758c8868cf 100644
--- a/test/src/xml-tests.el
+++ b/test/src/xml-tests.el
@@ -1,4 +1,4 @@
1;;; libxml-parse-tests.el --- Test suite for libxml parsing. 1;;; xml-tests.el --- Test suite for libxml parsing. -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 2014-2020 Free Software Foundation, Inc. 3;; Copyright (C) 2014-2020 Free Software Foundation, Inc.
4 4