]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Tramp test
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 16 Jun 2022 17:29:55 +0000 (19:29 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 16 Jun 2022 17:29:55 +0000 (19:29 +0200)
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-method-rules):
Remove superfluous checks.

test/lisp/net/tramp-tests.el

index 87c8eb0ada37fd8df6e61d5e4315f979a7ef290b..63fd96cae80ceb895a5f6595ce5b9ede332dd852 100644 (file)
@@ -2016,17 +2016,7 @@ Also see `ignore'."
      :type 'user-error)
     (should-error
      (expand-file-name "/method:user1@host1|ssh:user2@host2:/path/to/file")
-     :type 'user-error))
-
-  ;; Samba does not support file names with periods followed by
-  ;; spaces, and trailing periods or spaces.
-  (when (tramp--test-smb-p)
-    (dolist (file '("foo." "foo. bar" "foo "))
-      (should-error
-       (tramp-smb-get-localname
-       (tramp-dissect-file-name
-        (expand-file-name file ert-remote-temporary-file-directory)))
-       :type 'file-error))))
+     :type 'user-error)))
 
 (ert-deftest tramp-test04-substitute-in-file-name ()
   "Check `substitute-in-file-name'."