]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor cleanup of tramp-tests.el on MS Windows
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 25 Nov 2020 08:41:11 +0000 (09:41 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 25 Nov 2020 08:41:11 +0000 (09:41 +0100)
* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process):
Do not test remote pty on MS Windows.

test/lisp/net/tramp-tests.el

index cc65421619d962838417f5cd8d0fc639bdd89253..e42765ba0885838d37adebdd597e868548a7b1a0 100644 (file)
@@ -4289,7 +4289,9 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
              (setq proc (start-file-process "test4" (current-buffer) nil))
              (should (processp proc))
              (should (equal (process-status proc) 'run))
-             (should (stringp (process-tty-name proc)))))
+             ;; On MS Windows, `process-tty-name' returns nil.
+             (unless (tramp--test-windows-nt)
+               (should (stringp (process-tty-name proc))))))
 
        ;; Cleanup.
        (ignore-errors (delete-process proc))))))