1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-06 23:17:47 +02:00

tests: Keep .log files in objdir.

* tests/gpgscm/tests.scm (open-log-file): Keep the log file in objdir.

--

Before the change, it is at ephemeral temp directory which is removed.
This is not useful at all.  Possibly, it was done before the introduce
of ephemeral temp directory for each test and not changed.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-11-22 15:09:52 +09:00 committed by Werner Koch
parent b94fe0e007
commit 44cbe6fbc0
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -716,7 +716,9 @@
(define (open-log-file)
(unless log-file-name
(set! log-file-name (string-append (basename name) ".log")))
(set! log-file-name (path-join
(getenv "objdir")
(string-append name ".log"))))
(catch '() (unlink log-file-name))
(open log-file-name (logior O_RDWR O_BINARY O_CREAT) #o600))