]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix kill-process race condition in test scratch/nonspecial-handlers
authorNoam Postavsky <npostavs@gmail.com>
Tue, 30 Jan 2018 13:11:32 +0000 (08:11 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 31 Jan 2018 00:02:47 +0000 (19:02 -0500)
* 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

index 82a171664f7818c95dea5929efb116803296d484..3e52db2a5ba37e1e14635ece04b3fadd5ead59c7 100644 (file)
@@ -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)