emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/nonspecial-handlers 93ed67c: ; Fix kill-process ra


From: Noam Postavsky
Subject: [Emacs-diffs] scratch/nonspecial-handlers 93ed67c: ; Fix kill-process race condition in test
Date: Tue, 30 Jan 2018 19:04:59 -0500 (EST)

branch: scratch/nonspecial-handlers
commit 93ed67c11fafd3f3b5fb1d6b160a79aa6d2d18ed
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    ; 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.
---
 test/lisp/files-tests.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el
index 82a1716..3e52db2 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]