diff options
Diffstat (limited to 'test/lisp/vc/ediff-diff-tests.el')
-rw-r--r-- | test/lisp/vc/ediff-diff-tests.el | 11 |
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 @@ (should (equal call-process-args `(("diff" nil ,(current-buffer) nil "/a" "/b"))))))) +(ert-deftest ediff-diff-tests--ediff-exec-process--nil () + "Check that Bug#26378 is fixed." + (cl-letf* ((call-process-args ()) + ((symbol-function #'call-process) + (lambda (&rest args) (push args call-process-args) 0))) + (with-temp-buffer + (ediff-exec-process "diff" (current-buffer) :synchronous "" + "foo" nil "") + (should (equal call-process-args + `(("diff" nil ,(current-buffer) nil "foo"))))))) + ;;; ediff-diff-tests.el ends here |