aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/lisp/vc/ediff-diff-tests.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/lisp/vc/ediff-diff-tests.el b/test/lisp/vc/ediff-diff-tests.el
index aacc8bfed2b..566f592f84e 100644
--- a/test/lisp/vc/ediff-diff-tests.el
+++ b/test/lisp/vc/ediff-diff-tests.el
@@ -41,4 +41,15 @@
41 (should (equal call-process-args 41 (should (equal call-process-args
42 `(("diff" nil ,(current-buffer) nil "/a" "/b"))))))) 42 `(("diff" nil ,(current-buffer) nil "/a" "/b")))))))
43 43
44(ert-deftest ediff-diff-tests--ediff-exec-process--nil ()
45 "Check that Bug#26378 is fixed."
46 (cl-letf* ((call-process-args ())
47 ((symbol-function #'call-process)
48 (lambda (&rest args) (push args call-process-args) 0)))
49 (with-temp-buffer
50 (ediff-exec-process "diff" (current-buffer) :synchronous ""
51 "foo" nil "")
52 (should (equal call-process-args
53 `(("diff" nil ,(current-buffer) nil "foo")))))))
54
44;;; ediff-diff-tests.el ends here 55;;; ediff-diff-tests.el ends here