Remove some stray test tempfiles
authorGlenn Morris <rgm@gnu.org>
Thu, 22 May 2014 01:16:37 +0000 (21:16 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 22 May 2014 01:16:37 +0000 (21:16 -0400)
* test/automated/bytecomp-tests.el (test-byte-comp-compile-and-load):
Avoid leaving empty .elc tempfiles behind.

test/ChangeLog
test/automated/bytecomp-tests.el

index d575635..d42c017 100644 (file)
@@ -1,5 +1,8 @@
 2014-05-22  Glenn Morris  <rgm@gnu.org>
 
+       * automated/bytecomp-tests.el (test-byte-comp-compile-and-load):
+       Avoid leaving empty .elc tempfiles behind.
+
        * automated/fns-tests.el (fns-tests-nreverse):
        Update for changed string behavior.
 
index a7fbdbe..c109a12 100644 (file)
@@ -312,7 +312,7 @@ Subtests signal errors if something goes wrong."
          (progn
            (setf elfile (make-temp-file "test-bytecomp" nil ".el"))
            (when compile
-             (setf elcfile (make-temp-file "test-bytecomp" nil ".elc")))
+             (setf elcfile (concat elfile "c")))
            (with-temp-buffer
              (dolist (form forms)
                (print form (current-buffer)))