From eb608f9ef2d018191d614bac5cd247d998b6fdfb Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Wed, 3 Dec 2014 09:58:20 +0100 Subject: [PATCH] * automated/tramp-tests.el (tramp-test29-vc-registered): Fallback for changed `vc-register' argument list. --- test/ChangeLog | 5 +++++ test/automated/tramp-tests.el | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/test/ChangeLog b/test/ChangeLog index fea40786ba0..cc62818fecf 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,8 @@ +2014-12-03 Michael Albinus + + * automated/tramp-tests.el (tramp-test29-vc-registered): + Fallback for changed `vc-register' argument list. + 2014-12-03 Glenn Morris * automated/tramp-tests.el (tramp-test29-vc-registered): diff --git a/test/automated/tramp-tests.el b/test/automated/tramp-tests.el index 2b2074c78ed..c03b7464b4f 100644 --- a/test/automated/tramp-tests.el +++ b/test/automated/tramp-tests.el @@ -1469,9 +1469,15 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." (vc-create-repo (car vc-handled-backends)) ;; The structure of VC-FILESET is not documented. Let's ;; hope it won't change. - (vc-register - (list (car vc-handled-backends) - (list (file-name-nondirectory tmp-name2))))) + (condition-case nil + (vc-register + (list (car vc-handled-backends) + (list (file-name-nondirectory tmp-name2)))) + ;; `vc-register' has changed its arguments in Emacs 25.1. + (error + (vc-register + nil (list (car vc-handled-backends) + (list (file-name-nondirectory tmp-name2))))))) (should (vc-registered tmp-name2))) (ignore-errors (delete-directory tmp-name1 'recursive))))) -- 2.39.2