* test/automated/bytecomp-tests.el (test-byte-comp-compile-and-load):
Fix handling of temporary elc files.
2014-05-22 Glenn Morris <rgm@gnu.org>
* automated/bytecomp-tests.el (test-byte-comp-compile-and-load):
- Avoid leaving empty .elc tempfiles behind.
+ Fix handling of temporary elc files.
* automated/fns-tests.el (fns-tests-nreverse):
Update for changed string behavior.
(progn
(setf elfile (make-temp-file "test-bytecomp" nil ".el"))
(when compile
- (setf elcfile (concat elfile "c")))
+ (setf elcfile (make-temp-file "test-bytecomp" nil ".elc")))
(with-temp-buffer
(dolist (form forms)
(print form (current-buffer)))
(write-region (point-min) (point-max) elfile))
(if compile
- (let ((byte-compile-dest-file elcfile))
+ (let ((byte-compile-dest-file-function
+ (lambda (e) elcfile)))
(byte-compile-file elfile t))
(load elfile)))
(when elfile (delete-file elfile))