]> git.eshelyaron.com Git - emacs.git/commitdiff
better style into comp-tests-bootstrap
authorAndrea Corallo <akrl@sdf.org>
Sat, 23 Nov 2019 16:27:44 +0000 (17:27 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:09 +0000 (11:38 +0100)
test/src/comp-tests.el

index a0e6e23cefd46794a045ac99c67150316acc986e..361f116edaec1672e975dd8993c0fe7c9622001d 100644 (file)
 Check that the resulting binaries do not differ."
   (let* ((comp-src (concat comp-test-directory
                            "../../lisp/emacs-lisp/comp.el"))
-         (comp1-src (concat temporary-file-directory
-                            (make-temp-name "stage1-")
-                            ".el"))
-         (comp2-src (concat temporary-file-directory
-                            (make-temp-name "stage2-")
-                            ".el"))
+         (comp1-src (make-temp-file "stage1-" nil ".el"))
+         (comp2-src (make-temp-file "stage2-" nil ".el"))
          (comp1 (concat comp1-src "n"))
          (comp2 (concat comp2-src "n")))
-    (copy-file comp-src comp1-src)
-    (copy-file comp-src comp2-src)
+    (copy-file comp-src comp1-src t)
+    (copy-file comp-src comp2-src t)
     (load (concat comp-src "c") nil nil t t)
     (should (null (subr-native-elisp-p (symbol-function #'native-compile))))
     (message "Compiling stage1...")