Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
5c9a98bf
Commit
5c9a98bf
authored
Dec 10, 2014
by
Michael Albinus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* automated/vc-tests.el (vc-test--register): Check, that the file
still exists after register and unregister operations.
parent
99be7508
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
test/ChangeLog
test/ChangeLog
+5
-0
test/automated/vc-tests.el
test/automated/vc-tests.el
+6
-2
No files found.
test/ChangeLog
View file @
5c9a98bf
2014-12-10 Michael Albinus <michael.albinus@gmx.de>
* automated/vc-tests.el (vc-test--register): Check, that the file
still exists after register and unregister operations.
2014-12-06 Michael Albinus <michael.albinus@gmx.de>
* automated/vc-tests.el: New file.
...
...
test/automated/vc-tests.el
View file @
5c9a98bf
...
...
@@ -225,10 +225,12 @@ Don't set it globally, the functions shall be let-bound.")
(
should-not
(
vc-registered
tmp-name2
))
(
vc-register
(
list
backend
(
list
tmp-name1
tmp-name2
)))
(
should
(
file-exists-p
tmp-name1
))
(
should
(
vc-registered
tmp-name1
))
(
should
(
file-exists-p
tmp-name2
))
(
should
(
vc-registered
tmp-name2
))
;; Unregister the file
2
. Why isn't there `vc-unregister'?
;; Unregister the file
s
. Why isn't there `vc-unregister'?
(
condition-case
err
(
progn
(
funcall
(
vc-test--unregister-function
backend
)
tmp-name1
)
...
...
@@ -236,7 +238,9 @@ Don't set it globally, the functions shall be let-bound.")
(
funcall
(
vc-test--unregister-function
backend
)
tmp-name2
)
(
should-not
(
vc-registered
tmp-name2
)))
;; CVS, SVN, SCCS, SRC and Mtn are not supported.
(
vc-not-supported
(
message
"%s"
(
error-message-string
err
))))))
(
vc-not-supported
(
message
"%s"
(
error-message-string
err
))))
(
should
(
file-exists-p
tmp-name1
))
(
should
(
file-exists-p
tmp-name2
))))
;; Save exit.
(
ignore-errors
(
run-hooks
'vc-test--cleanup-hook
)))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment