From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: [elpa] externals/compat 9600545c54 6/6: Add test for temporary-file-directory Date: Mon, 16 Jan 2023 13:12:31 +0100 Message-ID: <87sfgallu8.fsf@gmx.de> References: <167387024599.18919.16349114791137926023@vcs2.savannah.gnu.org> <20230116115727.25BB4C04965@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39880"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Daniel Mendler To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 16 13:13:48 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pHOMx-000A7U-G9 for ged-emacs-devel@m.gmane-mx.org; Mon, 16 Jan 2023 13:13:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHOMA-0001PZ-I3; Mon, 16 Jan 2023 07:12:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHOM9-0001PC-0M for emacs-devel@gnu.org; Mon, 16 Jan 2023 07:12:53 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHOM7-0008Ax-9y for emacs-devel@gnu.org; Mon, 16 Jan 2023 07:12:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1673871152; bh=FFqmx9sj0nuf6yTrRPaO8OohyvrgcU9/y5s6FfgY07k=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=DfTrq38NHnMp9OKtwaiSvusMQWpXFPRfAy4+y9BoE79pyzDy4aDkK5Ya2UhJyK427 nrz21ml5A/vK7Qx8mQ9z2kONl47FNnAj8OdhCVM66ocy0/EiH9l+DKxtgnKM3jv2m1 kPUDPY4YAVytHdLkIcwhpnY6NjOa2yU6N++VMzt14w4aTTTX5/eGaZhtVS+CQlJfgj 891fgCv1fWZqOckAOvtKTU3MnbrYa63aA7n7utRnPq/7X4GT6f2uHGOhO6i/VSTWst wBaBRFRLvgrCApMjCMAVduvh0MNeihKMFjD9Cg/lXi1gv/EW27+Ev3+RGhnsY48ozh TwchV4bNHus+w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.37.45]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MMXQF-1oz1su3xpP-00JbNx; Mon, 16 Jan 2023 13:12:32 +0100 In-Reply-To: <20230116115727.25BB4C04965@vcs2.savannah.gnu.org> (ELPA Syncer's message of "Mon, 16 Jan 2023 06:57:27 -0500 (EST)") X-Provags-ID: V03:K1:K/u757KdnYeNeHzIrnzNBr77S+psow1vQ0pLEXplp7vaiXKL4dC noBGneo02sQc0ELYQ6Ja6eoGnSR33qC699dNONZ0PWzSu1ULwKe3B6zHrH/QsoP7smI5UWf +7NrtHHKXzA6LM2Nz7stIW+8+BhwXJpXl5NvP/9B/349X6lA4/b8AlZ51RKWcGF9ar5JQn0 mZmEA0J5jpY+huKRxWp8A== UI-OutboundReport: notjunk:1;M01:P0:kbhTiLDn+BY=;mUf52q6YUH+hbBk17HpRpK3y+fU fFqBD4UZof4Q72e1NmALBaE3bIY50K1ggiraZ2cPIMcPImRuVdMUqkDrnVr3BOphV0y83pIYv a+nDEwEzkCsS0YxTaCuYg+CTKQ/+cGyO0lWaSPKj6ZoGAt36Ftc9/qZtc2WMlfD29ecswaqwS XMpDbB+bJOBH9AJ582SyKNHJ/IVUOB7Qp1wBJhEf4/VdP7PzcEOPBtUb8KrUW4ZqYHsum50Fj hBfunFNbnSdmudhpEE/99lJGoz2iKUFldUixjRvX8S2APqNUg2CNhI/h+a5YFYcTTQU/ve504 4UNZ9k2ZY2pYjFC0I/5K5VRIRDuGaAsXHxuqvBIbQdVvvi953MY4LvxlUKspZSpaGQ5KKyM56 IWmhleqEPql1xRTwo+knChtT3AkBUCFS9WLCWjzPDsoqQvBLPSBAboetN9NV9u3dkKJNnANWe AXjGYYkyPMMwJFjfT5nJTHcbKbd6jaa7AZwF6io/Cy77Et5OiIWVzMXwPCUHUTmO7bSPAsvji YarYQq2a6oG9buUH4RpIGWMj6FyOcZPQyhU4ME0zVU09EqpcqF840q0s1gihJQ451PpWZRHHD b0xJxK5l3cgO7Q7DG373euHajhIz4UMsv5mPatOzIxHegmPIg1Ew3lsgPfZ3mvLXjw6Wu7Jze lV77g/dVen4G11QKwf9IQ8zeOpgjtRxxatzmIwLAZOVImSX6bI+F/9ZX4xJ+27xifsKs6kYLv 5P8b5Wg0Wg9pXgO+8P0xavu3M+h52TJV92U7KA7G3+e8+qklSe3yiZ3HtN8PQ4wvSkg/RWcE Received-SPF: pass client-ip=212.227.17.20; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302450 Archived-At: ELPA Syncer writes: Hi Daniel, > +(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.