mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
tests: Keep .log files in objdir.
* tests/gpgscm/tests.scm (open-log-file): Keep the log file in objdir. -- Forward port from 2.2 branch of: 1c88104a3f00f7ca3790fbaab8f67b2b68cd6e18 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:
parent
7ab2e4386f
commit
1372b17731
@ -725,7 +725,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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user