]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix vc test for RCS
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 29 Aug 2021 19:56:22 +0000 (21:56 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 29 Aug 2021 19:56:22 +0000 (21:56 +0200)
* test/lisp/vc/vc-tests.el (vc-test--rename-file): Fix test for RCS.

test/lisp/vc/vc-tests.el

index dbb8a9e3d12284bde323bdba2347fbdf011983a7..f2807a3f0639d512908a6768898e23ec2f6a6e1f 100644 (file)
@@ -588,7 +588,10 @@ This checks also `vc-backend' and `vc-responsible-backend'."
             (should (not (file-exists-p tmp-name)))
             (should (file-exists-p new-name))
 
-            (should (equal (vc-state new-name) 'added))))
+            (should (equal (vc-state new-name)
+                           (if (eq backend 'RCS)
+                               'up-to-date
+                             'added)))))
 
       ;; Save exit.
       (ignore-errors