]> git.eshelyaron.com Git - emacs.git/commitdiff
Adapt files-x-tests.el according to recent Tramp changes
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 23 Nov 2020 18:54:09 +0000 (19:54 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 23 Nov 2020 18:54:09 +0000 (19:54 +0100)
* test/lisp/files-x-tests.el (tramp-connection-local-default-profile):
Don't declare.
(tramp-connection-local-default-shell-variables)
(tramp-connection-local-default-system-variables): Declare.
(files-x-test-with-connection-local-variables): Use them.

test/lisp/files-x-tests.el

index 9db198384d018a87b1e7cd812159d60d20c1790e..6b05e6a88c3a4047a301087438bc703545b40d5f 100644 (file)
         (should-not (local-variable-p 'remote-shell-file-name))
         (should-not (boundp 'remote-shell-file-name))))))
 
-(defvar tramp-connection-local-default-profile)
+(defvar tramp-connection-local-default-shell-variables)
+(defvar tramp-connection-local-default-system-variables)
 
 (ert-deftest files-x-test-with-connection-local-variables ()
   "Test setting connection-local variables."
           (append
            (nreverse (copy-tree files-x-test--variables3))
            (nreverse (copy-tree files-x-test--variables2))
-            (nreverse (copy-tree tramp-connection-local-default-profile)))))
+            (nreverse
+             (copy-tree tramp-connection-local-default-shell-variables))
+            (nreverse
+             (copy-tree tramp-connection-local-default-system-variables)))))
          ;; The variables exist also as local variables.
          (should (local-variable-p 'remote-shell-file-name))
          (should (local-variable-p 'remote-null-device))