aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2014-12-10 09:42:44 +0100
committerMichael Albinus2014-12-10 09:42:44 +0100
commit5c9a98bffb2c824e2fc07350ac7492a0bd9cbc18 (patch)
tree2ea74c02469526778fcfe69ba56e92163266d595
parent99be75085cec471fa35a811bddaf09fe91fc3452 (diff)
downloademacs-5c9a98bffb2c824e2fc07350ac7492a0bd9cbc18.tar.gz
emacs-5c9a98bffb2c824e2fc07350ac7492a0bd9cbc18.zip
* automated/vc-tests.el (vc-test--register): Check, that the file
still exists after register and unregister operations.
-rw-r--r--test/ChangeLog5
-rw-r--r--test/automated/vc-tests.el8
2 files changed, 11 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index d760b11ce67..8b7b74d43bd 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
12014-12-10 Michael Albinus <michael.albinus@gmx.de>
2
3 * automated/vc-tests.el (vc-test--register): Check, that the file
4 still exists after register and unregister operations.
5
12014-12-06 Michael Albinus <michael.albinus@gmx.de> 62014-12-06 Michael Albinus <michael.albinus@gmx.de>
2 7
3 * automated/vc-tests.el: New file. 8 * automated/vc-tests.el: New file.
diff --git a/test/automated/vc-tests.el b/test/automated/vc-tests.el
index b64a3bf7003..d0f2dc7f989 100644
--- a/test/automated/vc-tests.el
+++ b/test/automated/vc-tests.el
@@ -225,10 +225,12 @@ Don't set it globally, the functions shall be let-bound.")
225 (should-not (vc-registered tmp-name2)) 225 (should-not (vc-registered tmp-name2))
226 (vc-register 226 (vc-register
227 (list backend (list tmp-name1 tmp-name2))) 227 (list backend (list tmp-name1 tmp-name2)))
228 (should (file-exists-p tmp-name1))
228 (should (vc-registered tmp-name1)) 229 (should (vc-registered tmp-name1))
230 (should (file-exists-p tmp-name2))
229 (should (vc-registered tmp-name2)) 231 (should (vc-registered tmp-name2))
230 232
231 ;; Unregister the file2. Why isn't there `vc-unregister'? 233 ;; Unregister the files. Why isn't there `vc-unregister'?
232 (condition-case err 234 (condition-case err
233 (progn 235 (progn
234 (funcall (vc-test--unregister-function backend) tmp-name1) 236 (funcall (vc-test--unregister-function backend) tmp-name1)
@@ -236,7 +238,9 @@ Don't set it globally, the functions shall be let-bound.")
236 (funcall (vc-test--unregister-function backend) tmp-name2) 238 (funcall (vc-test--unregister-function backend) tmp-name2)
237 (should-not (vc-registered tmp-name2))) 239 (should-not (vc-registered tmp-name2)))
238 ;; CVS, SVN, SCCS, SRC and Mtn are not supported. 240 ;; CVS, SVN, SCCS, SRC and Mtn are not supported.
239 (vc-not-supported (message "%s" (error-message-string err)))))) 241 (vc-not-supported (message "%s" (error-message-string err))))
242 (should (file-exists-p tmp-name1))
243 (should (file-exists-p tmp-name2))))
240 244
241 ;; Save exit. 245 ;; Save exit.
242 (ignore-errors (run-hooks 'vc-test--cleanup-hook))))) 246 (ignore-errors (run-hooks 'vc-test--cleanup-hook)))))