[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.11-59-g7c848

From: Eli Zaretskii
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.11-59-g7c848fe
Date: Wed, 13 Aug 2014 15:42:30 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

The branch, stable-2.0 has been updated
       via  7c848fe5724666edf667e753b5c828c21748fe31 (commit)
      from  1e9249e0cd0814937cb4bdda84c3002e24adbcb2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7c848fe5724666edf667e753b5c828c21748fe31
Author: Eli Zaretskii <address@hidden>
Date:   Wed Aug 13 18:41:15 2014 +0300

    Make temporary file in coding.test work on MS-Windows.
    * test-suite/tests/coding.test (with-temp-file): Instead of
      hard-coding "/tmp" as the temporary directory, use $TMPDIR or
      $TEMP from the environment, and fall back on "/tmp" if none of
      those 2 is defined.


Summary of changes:
 test-suite/tests/coding.test |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/test-suite/tests/coding.test b/test-suite/tests/coding.test
index b57ef7d..5f643f8 100644
--- a/test-suite/tests/coding.test
+++ b/test-suite/tests/coding.test
@@ -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-append tmpdir "/coding-test.XXXXXX"))
          (port (mkstemp! name)))
     (let ((res (with-throw-handler

GNU Guile

reply via email to

[Prev in Thread] Current Thread [Next in Thread]