From: Daniel Mendler <mail@daniel-mendler.de>
To: Michael Albinus <michael.albinus@gmx.de>, emacs-devel@gnu.org
Subject: Re: [elpa] externals/compat 9600545c54 6/6: Add test for temporary-file-directory
Date: Mon, 16 Jan 2023 15:08:31 +0100 [thread overview]
Message-ID: <fbcf3d02-558d-ff04-5f3b-546c09f72a19@daniel-mendler.de> (raw)
In-Reply-To: <87sfgallu8.fsf@gmx.de>
Hi Michael!
On 1/16/23 13:12, Michael Albinus wrote:
>> +(ert-deftest temporary-file-directory ()
>> + (should-equal (temporary-file-directory) temporary-file-directory)
>> + (let ((default-directory "/mnt"))
>> + (should-equal (temporary-file-directory) default-directory))
>> + ;; TODO how can we test tramp?
>> + ;;(let ((default-directory "/sudo:/"))
>> + ;; (should-equal (temporary-file-directory) temporary-file-directory))
>> + ;;(let ((default-directory "/ssh:does-not-exist:/"))
>> + ;; (should-equal (temporary-file-directory) "/ssh:does-not-exist:/tmp/"))
>
> See ert-remote-temporary-file-directory in ert-x.el.
>
> Best regards, Michael.
Thank you for the info. Btw, did you consider using the Compat library
in Tramp? A lot of the backported functionality in tramp-compat should
be already present in Compat.
Daniel
next prev parent reply other threads:[~2023-01-16 14:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <167387024599.18919.16349114791137926023@vcs2.savannah.gnu.org>
[not found] ` <20230116115727.25BB4C04965@vcs2.savannah.gnu.org>
2023-01-16 12:12 ` [elpa] externals/compat 9600545c54 6/6: Add test for temporary-file-directory Michael Albinus
2023-01-16 14:08 ` Daniel Mendler [this message]
2023-01-16 15:32 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fbcf3d02-558d-ff04-5f3b-546c09f72a19@daniel-mendler.de \
--to=mail@daniel-mendler.de \
--cc=emacs-devel@gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.