aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorAndrea Corallo2019-09-09 12:55:51 +0200
committerAndrea Corallo2020-01-01 11:37:46 +0100
commit63ecf01d0b0897b948296eaaffd690290d536b72 (patch)
treebcf6f8ec8d70ccea0ea721ae20fad1707a7b1676 /test/src
parentb9f37a2a09ac6bcef1a03cc49489f15ff01a74b7 (diff)
downloademacs-63ecf01d0b0897b948296eaaffd690290d536b72.tar.gz
emacs-63ecf01d0b0897b948296eaaffd690290d536b72.zip
crank optimizations while running native compiler test suite
Diffstat (limited to 'test/src')
-rw-r--r--test/src/comp-test-funcs.el1
-rw-r--r--test/src/comp-tests.el4
2 files changed, 2 insertions, 3 deletions
diff --git a/test/src/comp-test-funcs.el b/test/src/comp-test-funcs.el
index 4fc62482a0d..dbc90771774 100644
--- a/test/src/comp-test-funcs.el
+++ b/test/src/comp-test-funcs.el
@@ -185,7 +185,6 @@
185(defun comp-tests-err-foo-f () 185(defun comp-tests-err-foo-f ()
186 (error "foo")) 186 (error "foo"))
187 187
188;;FIXME: horrible...
189(defun comp-tests-condition-case-0-f () 188(defun comp-tests-condition-case-0-f ()
190 ;; Bpushhandler Bpophandler 189 ;; Bpushhandler Bpophandler
191 (condition-case 190 (condition-case
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index 331e1cfed16..4f4005bea66 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -29,7 +29,7 @@
29(require 'cl-lib) 29(require 'cl-lib)
30(require 'comp) 30(require 'comp)
31 31
32(setq comp-speed 0) 32(setq comp-speed 3)
33 33
34(defconst comp-test-src 34(defconst comp-test-src
35 (concat (file-name-directory (or load-file-name buffer-file-name)) 35 (concat (file-name-directory (or load-file-name buffer-file-name))
@@ -205,7 +205,7 @@
205 205
206(ert-deftest comp-tests-bubble-sort () 206(ert-deftest comp-tests-bubble-sort ()
207 "Run bubble sort." 207 "Run bubble sort."
208 (let* ((list1 (mapcar 'random (make-list 1000 most-positive-fixnum))) 208 (let* ((list1 (mapcar #'random (make-list 1000 most-positive-fixnum)))
209 (list2 (copy-sequence list1))) 209 (list2 (copy-sequence list1)))
210 (should (equal (comp-bubble-sort-f list1) 210 (should (equal (comp-bubble-sort-f list1)
211 (sort list2 #'<))))) 211 (sort list2 #'<)))))