X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/62fca47221fc9d248511cd94fbcb41ddb46763e6..3a12f2ed99734eff668f83f630c7108000e0b399:/test/automated/tramp-tests.el diff --git a/test/automated/tramp-tests.el b/test/automated/tramp-tests.el index 864a43d638..c03b7464b4 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 - nil (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)))))