aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2015-06-28 20:51:54 +0200
committerMichael Albinus2015-06-28 20:51:54 +0200
commitfc0e567ff3d36597c7ba3312de18df45f27ed99d (patch)
tree5d0ee0d13884bccc9a4a650fcb1c10c506a55ecc
parent39e08cc354f13160093d280ba773acb08ee63ed3 (diff)
downloademacs-fc0e567ff3d36597c7ba3312de18df45f27ed99d.tar.gz
emacs-fc0e567ff3d36597c7ba3312de18df45f27ed99d.zip
Sync with Tramp 2.2.12
* doc/misc/trampver.texi: * lisp/net/trampver.el: Update release number. * test/automated/tramp-tests.el (tramp-test13-make-directory): Fix cleanup.
-rw-r--r--doc/misc/trampver.texi2
-rw-r--r--lisp/net/trampver.el4
-rw-r--r--test/automated/tramp-tests.el69
3 files changed, 70 insertions, 5 deletions
diff --git a/doc/misc/trampver.texi b/doc/misc/trampver.texi
index 119adbd245e..fc6f4c58606 100644
--- a/doc/misc/trampver.texi
+++ b/doc/misc/trampver.texi
@@ -8,7 +8,7 @@
8@c In the Tramp GIT, the version number is auto-frobbed from 8@c In the Tramp GIT, the version number is auto-frobbed from
9@c configure.ac, so you should edit that file and run 9@c configure.ac, so you should edit that file and run
10@c "autoconf && ./configure" to change the version number. 10@c "autoconf && ./configure" to change the version number.
11@set trampver 2.2.12-pre 11@set trampver 2.2.12
12 12
13@c Other flags from configuration 13@c Other flags from configuration
14@set instprefix /usr/local 14@set instprefix /usr/local
diff --git a/lisp/net/trampver.el b/lisp/net/trampver.el
index eb22b6080be..beb040955e7 100644
--- a/lisp/net/trampver.el
+++ b/lisp/net/trampver.el
@@ -31,7 +31,7 @@
31;; should be changed only there. 31;; should be changed only there.
32 32
33;;;###tramp-autoload 33;;;###tramp-autoload
34(defconst tramp-version "2.2.12-pre" 34(defconst tramp-version "2.2.12"
35 "This version of Tramp.") 35 "This version of Tramp.")
36 36
37;;;###tramp-autoload 37;;;###tramp-autoload
@@ -58,7 +58,7 @@
58 (= emacs-major-version 21) 58 (= emacs-major-version 21)
59 (>= emacs-minor-version 4))) 59 (>= emacs-minor-version 4)))
60 "ok" 60 "ok"
61 (format "Tramp 2.2.12-pre is not fit for %s" 61 (format "Tramp 2.2.12 is not fit for %s"
62 (when (string-match "^.*$" (emacs-version)) 62 (when (string-match "^.*$" (emacs-version))
63 (match-string 0 (emacs-version))))))) 63 (match-string 0 (emacs-version)))))))
64 (unless (string-match "\\`ok\\'" x) (error "%s" x))) 64 (unless (string-match "\\`ok\\'" x) (error "%s" x)))
diff --git a/test/automated/tramp-tests.el b/test/automated/tramp-tests.el
index 84b2ab8db18..e1039392ea7 100644
--- a/test/automated/tramp-tests.el
+++ b/test/automated/tramp-tests.el
@@ -622,6 +622,8 @@ This checks also `file-name-as-directory', `file-name-directory',
622 (tramp-inline-compress-start-size 2)) 622 (tramp-inline-compress-start-size 2))
623 (delete-file tmp-name2) 623 (delete-file tmp-name2)
624 (should (setq tmp-name2 (file-local-copy tmp-name1))))) 624 (should (setq tmp-name2 (file-local-copy tmp-name1)))))
625
626 ;; Cleanup.
625 (ignore-errors 627 (ignore-errors
626 (delete-file tmp-name1) 628 (delete-file tmp-name1)
627 (delete-file tmp-name2))))) 629 (delete-file tmp-name2)))))
@@ -645,6 +647,8 @@ This checks also `file-name-as-directory', `file-name-directory',
645 ;; Replace. 647 ;; Replace.
646 (insert-file-contents tmp-name nil nil nil 'replace) 648 (insert-file-contents tmp-name nil nil nil 'replace)
647 (should (string-equal (buffer-string) "foo")))) 649 (should (string-equal (buffer-string) "foo"))))
650
651 ;; Cleanup.
648 (ignore-errors (delete-file tmp-name))))) 652 (ignore-errors (delete-file tmp-name)))))
649 653
650(ert-deftest tramp-test10-write-region () 654(ert-deftest tramp-test10-write-region ()
@@ -679,6 +683,8 @@ This checks also `file-name-as-directory', `file-name-directory',
679 (with-temp-buffer 683 (with-temp-buffer
680 (insert-file-contents tmp-name) 684 (insert-file-contents tmp-name)
681 (should (string-equal (buffer-string) "34")))) 685 (should (string-equal (buffer-string) "34"))))
686
687 ;; Cleanup.
682 (ignore-errors (delete-file tmp-name))))) 688 (ignore-errors (delete-file tmp-name)))))
683 689
684(ert-deftest tramp-test11-copy-file () 690(ert-deftest tramp-test11-copy-file ()
@@ -707,6 +713,8 @@ This checks also `file-name-as-directory', `file-name-directory',
707 (should 713 (should
708 (file-exists-p 714 (file-exists-p
709 (expand-file-name (file-name-nondirectory tmp-name1) tmp-name3)))) 715 (expand-file-name (file-name-nondirectory tmp-name1) tmp-name3))))
716
717 ;; Cleanup.
710 (ignore-errors (delete-file tmp-name1)) 718 (ignore-errors (delete-file tmp-name1))
711 (ignore-errors (delete-file tmp-name2)) 719 (ignore-errors (delete-file tmp-name2))
712 (ignore-errors (delete-directory tmp-name3 'recursive))) 720 (ignore-errors (delete-directory tmp-name3 'recursive)))
@@ -727,6 +735,8 @@ This checks also `file-name-as-directory', `file-name-directory',
727 (should 735 (should
728 (file-exists-p 736 (file-exists-p
729 (expand-file-name (file-name-nondirectory tmp-name1) tmp-name5)))) 737 (expand-file-name (file-name-nondirectory tmp-name1) tmp-name5))))
738
739 ;; Cleanup.
730 (ignore-errors (delete-file tmp-name1)) 740 (ignore-errors (delete-file tmp-name1))
731 (ignore-errors (delete-file tmp-name4)) 741 (ignore-errors (delete-file tmp-name4))
732 (ignore-errors (delete-directory tmp-name5 'recursive))) 742 (ignore-errors (delete-directory tmp-name5 'recursive)))
@@ -747,6 +757,8 @@ This checks also `file-name-as-directory', `file-name-directory',
747 (should 757 (should
748 (file-exists-p 758 (file-exists-p
749 (expand-file-name (file-name-nondirectory tmp-name4) tmp-name3)))) 759 (expand-file-name (file-name-nondirectory tmp-name4) tmp-name3))))
760
761 ;; Cleanup.
750 (ignore-errors (delete-file tmp-name1)) 762 (ignore-errors (delete-file tmp-name1))
751 (ignore-errors (delete-file tmp-name4)) 763 (ignore-errors (delete-file tmp-name4))
752 (ignore-errors (delete-directory tmp-name3 'recursive))))) 764 (ignore-errors (delete-directory tmp-name3 'recursive)))))
@@ -782,6 +794,8 @@ This checks also `file-name-as-directory', `file-name-directory',
782 (should 794 (should
783 (file-exists-p 795 (file-exists-p
784 (expand-file-name (file-name-nondirectory tmp-name1) tmp-name3)))) 796 (expand-file-name (file-name-nondirectory tmp-name1) tmp-name3))))
797
798 ;; Cleanup.
785 (ignore-errors (delete-file tmp-name1)) 799 (ignore-errors (delete-file tmp-name1))
786 (ignore-errors (delete-file tmp-name2)) 800 (ignore-errors (delete-file tmp-name2))
787 (ignore-errors (delete-directory tmp-name3 'recursive))) 801 (ignore-errors (delete-directory tmp-name3 'recursive)))
@@ -807,6 +821,8 @@ This checks also `file-name-as-directory', `file-name-directory',
807 (should 821 (should
808 (file-exists-p 822 (file-exists-p
809 (expand-file-name (file-name-nondirectory tmp-name1) tmp-name5)))) 823 (expand-file-name (file-name-nondirectory tmp-name1) tmp-name5))))
824
825 ;; Cleanup.
810 (ignore-errors (delete-file tmp-name1)) 826 (ignore-errors (delete-file tmp-name1))
811 (ignore-errors (delete-file tmp-name4)) 827 (ignore-errors (delete-file tmp-name4))
812 (ignore-errors (delete-directory tmp-name5 'recursive))) 828 (ignore-errors (delete-directory tmp-name5 'recursive)))
@@ -832,6 +848,8 @@ This checks also `file-name-as-directory', `file-name-directory',
832 (should 848 (should
833 (file-exists-p 849 (file-exists-p
834 (expand-file-name (file-name-nondirectory tmp-name4) tmp-name3)))) 850 (expand-file-name (file-name-nondirectory tmp-name4) tmp-name3))))
851
852 ;; Cleanup.
835 (ignore-errors (delete-file tmp-name1)) 853 (ignore-errors (delete-file tmp-name1))
836 (ignore-errors (delete-file tmp-name4)) 854 (ignore-errors (delete-file tmp-name4))
837 (ignore-errors (delete-directory tmp-name3 'recursive))))) 855 (ignore-errors (delete-directory tmp-name3 'recursive)))))
@@ -854,7 +872,9 @@ This tests also `file-directory-p' and `file-accessible-directory-p'."
854 (should (file-directory-p (expand-file-name "foo/bar" tmp-name))) 872 (should (file-directory-p (expand-file-name "foo/bar" tmp-name)))
855 (should 873 (should
856 (file-accessible-directory-p (expand-file-name "foo/bar" tmp-name)))) 874 (file-accessible-directory-p (expand-file-name "foo/bar" tmp-name))))
857 (ignore-errors (delete-directory tmp-name))))) 875
876 ;; Cleanup.
877 (ignore-errors (delete-directory tmp-name 'recursive)))))
858 878
859(ert-deftest tramp-test14-delete-directory () 879(ert-deftest tramp-test14-delete-directory ()
860 "Check `delete-directory'." 880 "Check `delete-directory'."
@@ -903,6 +923,8 @@ This tests also `file-directory-p' and `file-accessible-directory-p'."
903 (copy-directory tmp-name1 tmp-name2) 923 (copy-directory tmp-name1 tmp-name2)
904 (should (file-directory-p tmp-name3)) 924 (should (file-directory-p tmp-name3))
905 (should (file-exists-p tmp-name6))) 925 (should (file-exists-p tmp-name6)))
926
927 ;; Cleanup.
906 (ignore-errors 928 (ignore-errors
907 (delete-directory tmp-name1 'recursive) 929 (delete-directory tmp-name1 'recursive)
908 (delete-directory tmp-name2 'recursive))))) 930 (delete-directory tmp-name2 'recursive)))))
@@ -933,6 +955,8 @@ This tests also `file-directory-p' and `file-accessible-directory-p'."
933 (should (equal (directory-files 955 (should (equal (directory-files
934 tmp-name1 'full directory-files-no-dot-files-regexp) 956 tmp-name1 'full directory-files-no-dot-files-regexp)
935 `(,tmp-name2 ,tmp-name3)))) 957 `(,tmp-name2 ,tmp-name3))))
958
959 ;; Cleanup.
936 (ignore-errors (delete-directory tmp-name1 'recursive))))) 960 (ignore-errors (delete-directory tmp-name1 'recursive)))))
937 961
938(ert-deftest tramp-test17-insert-directory () 962(ert-deftest tramp-test17-insert-directory ()
@@ -974,6 +998,8 @@ This tests also `file-directory-p' and `file-accessible-directory-p'."
974 "\\(total.+[[:digit:]]+\n\\)?" 998 "\\(total.+[[:digit:]]+\n\\)?"
975 ;; We don't know in which order ".", ".." and "foo" appear. 999 ;; We don't know in which order ".", ".." and "foo" appear.
976 "\\(.+ \\(\\.?\\.\\|foo\\)\n\\)\\{3\\}"))))) 1000 "\\(.+ \\(\\.?\\.\\|foo\\)\n\\)\\{3\\}")))))
1001
1002 ;; Cleanup.
977 (ignore-errors (delete-directory tmp-name1 'recursive))))) 1003 (ignore-errors (delete-directory tmp-name1 'recursive)))))
978 1004
979(ert-deftest tramp-test18-file-attributes () 1005(ert-deftest tramp-test18-file-attributes ()
@@ -1038,6 +1064,7 @@ This tests also `file-readable-p' and `file-regular-p'."
1038 (setq attr (file-attributes tmp-name1)) 1064 (setq attr (file-attributes tmp-name1))
1039 (should (eq (car attr) t))) 1065 (should (eq (car attr) t)))
1040 1066
1067 ;; Cleanup.
1041 (ignore-errors (delete-directory tmp-name1))))) 1068 (ignore-errors (delete-directory tmp-name1)))))
1042 1069
1043(ert-deftest tramp-test19-directory-files-and-attributes () 1070(ert-deftest tramp-test19-directory-files-and-attributes ()
@@ -1079,6 +1106,8 @@ This tests also `file-readable-p' and `file-regular-p'."
1079 (equal (file-attributes (car elt)) (cdr elt))))) 1106 (equal (file-attributes (car elt)) (cdr elt)))))
1080 (setq attr (directory-files-and-attributes tmp-name2 nil "^b")) 1107 (setq attr (directory-files-and-attributes tmp-name2 nil "^b"))
1081 (should (equal (mapcar 'car attr) '("bar" "boz")))) 1108 (should (equal (mapcar 'car attr) '("bar" "boz"))))
1109
1110 ;; Cleanup.
1082 (ignore-errors (delete-directory tmp-name1 'recursive))))) 1111 (ignore-errors (delete-directory tmp-name1 'recursive)))))
1083 1112
1084(ert-deftest tramp-test20-file-modes () 1113(ert-deftest tramp-test20-file-modes ()
@@ -1108,6 +1137,8 @@ This tests also `file-executable-p', `file-writable-p' and `set-file-modes'."
1108 ;; A file is always writable for user "root". 1137 ;; A file is always writable for user "root".
1109 (unless (zerop (nth 2 (file-attributes tmp-name))) 1138 (unless (zerop (nth 2 (file-attributes tmp-name)))
1110 (should-not (file-writable-p tmp-name)))) 1139 (should-not (file-writable-p tmp-name))))
1140
1141 ;; Cleanup.
1111 (ignore-errors (delete-file tmp-name))))) 1142 (ignore-errors (delete-file tmp-name)))))
1112 1143
1113(ert-deftest tramp-test21-file-links () 1144(ert-deftest tramp-test21-file-links ()
@@ -1142,6 +1173,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1142 (should (file-symlink-p tmp-name2)) 1173 (should (file-symlink-p tmp-name2))
1143 ;; `tmp-name3' is a local file name. 1174 ;; `tmp-name3' is a local file name.
1144 (should-error (make-symbolic-link tmp-name1 tmp-name3))) 1175 (should-error (make-symbolic-link tmp-name1 tmp-name3)))
1176
1177 ;; Cleanup.
1145 (ignore-errors 1178 (ignore-errors
1146 (delete-file tmp-name1) 1179 (delete-file tmp-name1)
1147 (delete-file tmp-name2))) 1180 (delete-file tmp-name2)))
@@ -1157,6 +1190,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1157 (should-not (file-symlink-p tmp-name2)) 1190 (should-not (file-symlink-p tmp-name2))
1158 ;; `tmp-name3' is a local file name. 1191 ;; `tmp-name3' is a local file name.
1159 (should-error (add-name-to-file tmp-name1 tmp-name3))) 1192 (should-error (add-name-to-file tmp-name1 tmp-name3)))
1193
1194 ;; Cleanup.
1160 (ignore-errors 1195 (ignore-errors
1161 (delete-file tmp-name1) 1196 (delete-file tmp-name1)
1162 (delete-file tmp-name2))) 1197 (delete-file tmp-name2)))
@@ -1214,6 +1249,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1214 ;; `tmp-name3' does not exist. 1249 ;; `tmp-name3' does not exist.
1215 (should (file-newer-than-file-p tmp-name2 tmp-name3)) 1250 (should (file-newer-than-file-p tmp-name2 tmp-name3))
1216 (should-not (file-newer-than-file-p tmp-name3 tmp-name1)))) 1251 (should-not (file-newer-than-file-p tmp-name3 tmp-name1))))
1252
1253 ;; Cleanup.
1217 (ignore-errors 1254 (ignore-errors
1218 (delete-file tmp-name1) 1255 (delete-file tmp-name1)
1219 (delete-file tmp-name2))))) 1256 (delete-file tmp-name2)))))
@@ -1233,6 +1270,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1233 (set-visited-file-modtime '(0 1)) 1270 (set-visited-file-modtime '(0 1))
1234 (should (verify-visited-file-modtime)) 1271 (should (verify-visited-file-modtime))
1235 (should (equal (visited-file-modtime) '(0 1 0 0))))) 1272 (should (equal (visited-file-modtime) '(0 1 0 0)))))
1273
1274 ;; Cleanup.
1236 (ignore-errors (delete-file tmp-name))))) 1275 (ignore-errors (delete-file tmp-name)))))
1237 1276
1238(ert-deftest tramp-test24-file-name-completion () 1277(ert-deftest tramp-test24-file-name-completion ()
@@ -1255,6 +1294,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1255 (should 1294 (should
1256 (equal (sort (file-name-all-completions "b" tmp-name) 'string-lessp) 1295 (equal (sort (file-name-all-completions "b" tmp-name) 'string-lessp)
1257 '("bold" "boz/")))) 1296 '("bold" "boz/"))))
1297
1298 ;; Cleanup.
1258 (ignore-errors (delete-directory tmp-name 'recursive))))) 1299 (ignore-errors (delete-directory tmp-name 'recursive)))))
1259 1300
1260(ert-deftest tramp-test25-load () 1301(ert-deftest tramp-test25-load ()
@@ -1271,6 +1312,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1271 ;(should-error (load tmp-name nil 'nomessage 'nosuffix 'must-suffix)) 1312 ;(should-error (load tmp-name nil 'nomessage 'nosuffix 'must-suffix))
1272 (load tmp-name nil 'nomessage 'nosuffix) 1313 (load tmp-name nil 'nomessage 'nosuffix)
1273 (should (featurep 'tramp-test-load))) 1314 (should (featurep 'tramp-test-load)))
1315
1316 ;; Cleanup.
1274 (ignore-errors 1317 (ignore-errors
1275 (and (featurep 'tramp-test-load) (unload-feature 'tramp-test-load)) 1318 (and (featurep 'tramp-test-load) (unload-feature 'tramp-test-load))
1276 (delete-file tmp-name))))) 1319 (delete-file tmp-name)))))
@@ -1317,6 +1360,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1317 ;; A non-nil DISPLAY must not raise the buffer. 1360 ;; A non-nil DISPLAY must not raise the buffer.
1318 (should-not (get-buffer-window (current-buffer) t)))) 1361 (should-not (get-buffer-window (current-buffer) t))))
1319 1362
1363 ;; Cleanup.
1320 (ignore-errors (delete-file tmp-name))))) 1364 (ignore-errors (delete-file tmp-name)))))
1321 1365
1322(ert-deftest tramp-test27-start-file-process () 1366(ert-deftest tramp-test27-start-file-process ()
@@ -1345,6 +1389,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1345 (while (< (- (point-max) (point-min)) (length "foo")) 1389 (while (< (- (point-max) (point-min)) (length "foo"))
1346 (accept-process-output proc 1))) 1390 (accept-process-output proc 1)))
1347 (should (string-equal (buffer-string) "foo"))) 1391 (should (string-equal (buffer-string) "foo")))
1392
1393 ;; Cleanup.
1348 (ignore-errors (delete-process proc))) 1394 (ignore-errors (delete-process proc)))
1349 1395
1350 (unwind-protect 1396 (unwind-protect
@@ -1361,6 +1407,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1361 (while (< (- (point-max) (point-min)) (length "foo")) 1407 (while (< (- (point-max) (point-min)) (length "foo"))
1362 (accept-process-output proc 1))) 1408 (accept-process-output proc 1)))
1363 (should (string-equal (buffer-string) "foo"))) 1409 (should (string-equal (buffer-string) "foo")))
1410
1411 ;; Cleanup.
1364 (ignore-errors 1412 (ignore-errors
1365 (delete-process proc) 1413 (delete-process proc)
1366 (delete-file tmp-name))) 1414 (delete-file tmp-name)))
@@ -1380,6 +1428,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1380 (while (< (- (point-max) (point-min)) (length "foo")) 1428 (while (< (- (point-max) (point-min)) (length "foo"))
1381 (accept-process-output proc 1))) 1429 (accept-process-output proc 1)))
1382 (should (string-equal (buffer-string) "foo"))) 1430 (should (string-equal (buffer-string) "foo")))
1431
1432 ;; Cleanup.
1383 (ignore-errors (delete-process proc))))) 1433 (ignore-errors (delete-process proc)))))
1384 1434
1385(ert-deftest tramp-test28-shell-command () 1435(ert-deftest tramp-test28-shell-command ()
@@ -1409,6 +1459,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1409 (should 1459 (should
1410 (string-equal 1460 (string-equal
1411 (format "%s\n" (file-name-nondirectory tmp-name)) (buffer-string)))) 1461 (format "%s\n" (file-name-nondirectory tmp-name)) (buffer-string))))
1462
1463 ;; Cleanup.
1412 (ignore-errors (delete-file tmp-name))) 1464 (ignore-errors (delete-file tmp-name)))
1413 1465
1414 (unwind-protect 1466 (unwind-protect
@@ -1434,6 +1486,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1434 (should 1486 (should
1435 (string-equal 1487 (string-equal
1436 (format "%s\n" (file-name-nondirectory tmp-name)) (buffer-string)))) 1488 (format "%s\n" (file-name-nondirectory tmp-name)) (buffer-string))))
1489
1490 ;; Cleanup.
1437 (ignore-errors (delete-file tmp-name))) 1491 (ignore-errors (delete-file tmp-name)))
1438 1492
1439 (unwind-protect 1493 (unwind-protect
@@ -1461,6 +1515,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1461 (should 1515 (should
1462 (string-equal 1516 (string-equal
1463 (format "%s\n" (file-name-nondirectory tmp-name)) (buffer-string)))) 1517 (format "%s\n" (file-name-nondirectory tmp-name)) (buffer-string))))
1518
1519 ;; Cleanup.
1464 (ignore-errors (delete-file tmp-name))))) 1520 (ignore-errors (delete-file tmp-name)))))
1465 1521
1466(ert-deftest tramp-test29-vc-registered () 1522(ert-deftest tramp-test29-vc-registered ()
@@ -1521,7 +1577,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1521 (list (file-name-nondirectory tmp-name2))))))) 1577 (list (file-name-nondirectory tmp-name2)))))))
1522 (should (vc-registered tmp-name2))) 1578 (should (vc-registered tmp-name2)))
1523 1579
1524 (ignore-errors (delete-directory tmp-name1 'recursive))))) 1580 ;; Cleanup.
1581 (ignore-errors (delete-directory tmp-name1 'recursive)))))
1525 1582
1526(ert-deftest tramp-test30-make-auto-save-file-name () 1583(ert-deftest tramp-test30-make-auto-save-file-name ()
1527 "Check `make-auto-save-file-name'." 1584 "Check `make-auto-save-file-name'."
@@ -1603,6 +1660,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1603 tmp-name2))) 1660 tmp-name2)))
1604 (should (file-directory-p tmp-name2))))) 1661 (should (file-directory-p tmp-name2)))))
1605 1662
1663 ;; Cleanup.
1606 (ignore-errors (delete-file tmp-name1)) 1664 (ignore-errors (delete-file tmp-name1))
1607 (ignore-errors (delete-directory tmp-name2 'recursive))))) 1665 (ignore-errors (delete-directory tmp-name2 'recursive)))))
1608 1666
@@ -1752,6 +1810,7 @@ This requires restrictions of file name syntax."
1752 (delete-directory file1) 1810 (delete-directory file1)
1753 (should-not (file-exists-p file1))))) 1811 (should-not (file-exists-p file1)))))
1754 1812
1813 ;; Cleanup.
1755 (ignore-errors (delete-directory tmp-name1 'recursive)) 1814 (ignore-errors (delete-directory tmp-name1 'recursive))
1756 (ignore-errors (delete-directory tmp-name2 'recursive))))) 1815 (ignore-errors (delete-directory tmp-name2 'recursive)))))
1757 1816
@@ -1805,6 +1864,7 @@ Use the `stat' command."
1805 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil 1864 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
1806 (tramp-set-connection-property v "perl" nil) 1865 (tramp-set-connection-property v "perl" nil)
1807 (tramp--test-special-characters)) 1866 (tramp--test-special-characters))
1867
1808 ;; Reset suppressed properties. 1868 ;; Reset suppressed properties.
1809 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil 1869 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
1810 (tramp-set-connection-property v "perl" 'undef)))) 1870 (tramp-set-connection-property v "perl" 'undef))))
@@ -1824,6 +1884,7 @@ Use the `perl' command."
1824 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil 1884 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
1825 (tramp-set-connection-property v "stat" nil) 1885 (tramp-set-connection-property v "stat" nil)
1826 (tramp--test-special-characters)) 1886 (tramp--test-special-characters))
1887
1827 ;; Reset suppressed properties. 1888 ;; Reset suppressed properties.
1828 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil 1889 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
1829 (tramp-set-connection-property v "stat" 'undef)))) 1890 (tramp-set-connection-property v "stat" 'undef))))
@@ -1842,6 +1903,7 @@ Use the `ls' command."
1842 (tramp-set-connection-property v "stat" nil) 1903 (tramp-set-connection-property v "stat" nil)
1843 (tramp-set-connection-property v "perl" nil) 1904 (tramp-set-connection-property v "perl" nil)
1844 (tramp--test-special-characters)) 1905 (tramp--test-special-characters))
1906
1845 ;; Reset suppressed properties. 1907 ;; Reset suppressed properties.
1846 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil 1908 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
1847 (tramp-set-connection-property v "stat" 'undef) 1909 (tramp-set-connection-property v "stat" 'undef)
@@ -1879,6 +1941,7 @@ Use the `stat' command."
1879 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil 1941 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
1880 (tramp-set-connection-property v "perl" nil) 1942 (tramp-set-connection-property v "perl" nil)
1881 (tramp--test-utf8)) 1943 (tramp--test-utf8))
1944
1882 ;; Reset suppressed properties. 1945 ;; Reset suppressed properties.
1883 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil 1946 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
1884 (tramp-set-connection-property v "perl" 'undef)))) 1947 (tramp-set-connection-property v "perl" 'undef))))
@@ -1898,6 +1961,7 @@ Use the `perl' command."
1898 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil 1961 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
1899 (tramp-set-connection-property v "stat" nil) 1962 (tramp-set-connection-property v "stat" nil)
1900 (tramp--test-utf8)) 1963 (tramp--test-utf8))
1964
1901 ;; Reset suppressed properties. 1965 ;; Reset suppressed properties.
1902 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil 1966 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
1903 (tramp-set-connection-property v "stat" 'undef)))) 1967 (tramp-set-connection-property v "stat" 'undef))))
@@ -1916,6 +1980,7 @@ Use the `ls' command."
1916 (tramp-set-connection-property v "stat" nil) 1980 (tramp-set-connection-property v "stat" nil)
1917 (tramp-set-connection-property v "perl" nil) 1981 (tramp-set-connection-property v "perl" nil)
1918 (tramp--test-utf8)) 1982 (tramp--test-utf8))
1983
1919 ;; Reset suppressed properties. 1984 ;; Reset suppressed properties.
1920 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil 1985 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
1921 (tramp-set-connection-property v "stat" 'undef) 1986 (tramp-set-connection-property v "stat" 'undef)