Commit 2ad06e28 authored by Eli Zaretskii's avatar Eli Zaretskii

Fix file-tests.el on MS-Windows

* test/lisp/files-tests.el
(files-tests-file-name-non-special-start-file-process): On
MS-Windows, wait till the process dies before returning from
the files-tests--with-temp-non-special macro, to ensure the
temporary directory is successfully deleted.
parent 0b21ecdb
Pipeline #3922 failed with stage
in 90 minutes and 1 second
......@@ -1052,7 +1052,13 @@ unquoted file names."
(should (search-forward emacs-version nil t))
;; Don't stop the test run with a query, as the subprocess
;; may or may not be dead by the time we reach here.
(set-process-query-on-exit-flag proc nil)))))
(set-process-query-on-exit-flag proc nil)
;; On MS-Windows, wait for the process to die, since the OS
;; will not let us delete a directory that is the cwd of a
;; running process.
(when (eq system-type 'windows-nt)
(while (process-live-p proc)
(sleep-for 0.1)))))))
(tmpdir nospecial-dir t)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment