From: Noam Postavsky Date: Tue, 30 Jan 2018 13:11:32 +0000 (-0500) Subject: ; Fix kill-process race condition in test X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fscratch%2Fnonspecial-handlers;p=emacs.git ; Fix kill-process race condition in test * test/lisp/files-tests.el (files-tests-file-name-non-special-start-file-process): Just disable the query-on-exit-flag, rather than trying to get the process killed before the end of test. --- diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el index 82a171664f7..3e52db2a5ba 100644 --- a/test/lisp/files-tests.el +++ b/test/lisp/files-tests.el @@ -703,8 +703,7 @@ be invoked with the right arguments." (accept-process-output proc) (goto-char (point-min)) (should (search-forward emacs-version nil t)) - (kill-process proc) - (accept-process-output proc )))))) + (set-process-query-on-exit-flag proc nil)))))) (ert-deftest files-tests-file-name-non-special-substitute-in-file-name () (files-tests--with-temp-non-special (tmpfile nospecial)