summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/net/tramp-tests.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index c76d6d54c3d..d6eb782df3d 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -6555,6 +6555,21 @@ INPUT, if non-nil, is a string sent to the process."
(funcall
this-shell-command-to-string "echo \"${INSIDE_EMACS:-bla}\""))))
+ ;; Check EMACSCLIENT_TRAMP.
+ (setenv "EMACSCLIENT_TRAMP")
+ (let ((tramp-propagate-emacsclient-tramp t))
+ (should
+ (string-equal
+ (format "%s\n" (tramp-make-tramp-file-name tramp-test-vec 'noloc))
+ (funcall
+ this-shell-command-to-string "echo \"${EMACSCLIENT_TRAMP:-bla}\""))))
+ (let (tramp-propagate-emacsclient-tramp)
+ (should
+ (string-equal
+ "bla\n"
+ (funcall
+ this-shell-command-to-string "echo \"${EMACSCLIENT_TRAMP:-bla}\""))))
+
;; Set a value.
(let ((process-environment
(cons (concat envvar "=foo") process-environment)))