summaryrefslogtreecommitdiff
path: root/test/lisp/vc/ediff-diff-tests.el
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2017-04-08 16:55:56 +0200
committerPhilipp Stephani <phst@google.com>2017-04-08 16:55:56 +0200
commit5ea696fd24c2bd8006050866fba0ccab1c0ff931 (patch)
tree4f8fa1e83e9a63a6811e587e9b3190121497cc82 /test/lisp/vc/ediff-diff-tests.el
parent4fbfd7ad53810153371a588a9bd1a69230f60dd5 (diff)
downloademacs-5ea696fd24c2bd8006050866fba0ccab1c0ff931.tar.gz
emacs-5ea696fd24c2bd8006050866fba0ccab1c0ff931.tar.bz2
emacs-5ea696fd24c2bd8006050866fba0ccab1c0ff931.zip
Add unit test for Bug#26378
* test/lisp/vc/ediff-diff-tests.el (ediff-diff-tests--ediff-exec-process--nil): New unit test.
Diffstat (limited to 'test/lisp/vc/ediff-diff-tests.el')
-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 @@
(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