From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.lisp.guile.devel Subject: Make temp file in coding.test work on MS-Windows Date: Sat, 09 Aug 2014 17:16:22 +0300 Message-ID: <83oavtlpe1.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1407593820 12076 80.91.229.3 (9 Aug 2014 14:17:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2014 14:17:00 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Aug 09 16:16:52 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XG7Rz-0003N8-NV for guile-devel@m.gmane.org; Sat, 09 Aug 2014 16:16:51 +0200 Original-Received: from localhost ([::1]:56277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG7Rz-0005IV-9k for guile-devel@m.gmane.org; Sat, 09 Aug 2014 10:16:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG7Rp-0005H6-K7 for guile-devel@gnu.org; Sat, 09 Aug 2014 10:16:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XG7Ri-0000VA-4w for guile-devel@gnu.org; Sat, 09 Aug 2014 10:16:41 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:51979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG7Rh-0000V0-TC for guile-devel@gnu.org; Sat, 09 Aug 2014 10:16:34 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NA100D00LESMB00@mtaout24.012.net.il> for guile-devel@gnu.org; Sat, 09 Aug 2014 17:12:18 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NA100EATM4IQI10@mtaout24.012.net.il> for guile-devel@gnu.org; Sat, 09 Aug 2014 17:12:18 +0300 (IDT) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.180 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17316 Archived-At: I've built Guile 2.0.11 on another system, and found a problem in coding.test: it assumes that /tmp exists, and creates the temporary files there. Here's the patch to make that more portable: --- test-suite/tests/coding.test~0 2014-01-21 23:45:02.000000000 +0200 +++ test-suite/tests/coding.test 2014-08-09 13:16:46.416750000 +0300 @@ -20,7 +20,10 @@ #:use-module (test-suite lib)) (define (with-temp-file proc) - (let* ((name (string-copy "/tmp/coding-test.XXXXXX")) + (let* ((tmpdir (or (getenv "TMPDIR") + (getenv "TEMP") + "/tmp")) + (name (string-concatenate (list tmpdir "/coding-test.XXXXXX"))) (port (mkstemp! name))) (let ((res (with-throw-handler #t