aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-11-22 06:09:52 +0000
committerNIIBE Yutaka <[email protected]>2022-11-24 02:45:11 +0000
commit1372b17731872d6db732b7623b27ea3e90db6331 (patch)
tree7944c7e666016f0ca7a84ee8612143e9474b9125 /tests
parenttests: Use 233 for invalid value of FD. (diff)
downloadgnupg-1372b17731872d6db732b7623b27ea3e90db6331.tar.gz
gnupg-1372b17731872d6db732b7623b27ea3e90db6331.zip
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 <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/gpgscm/tests.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gpgscm/tests.scm b/tests/gpgscm/tests.scm
index cebe419f8..31e140d74 100644
--- a/tests/gpgscm/tests.scm
+++ b/tests/gpgscm/tests.scm
@@ -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))