diff options
author | NIIBE Yutaka <[email protected]> | 2022-11-22 06:09:52 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2022-11-24 02:45:11 +0000 |
commit | 1372b17731872d6db732b7623b27ea3e90db6331 (patch) | |
tree | 7944c7e666016f0ca7a84ee8612143e9474b9125 /tests/gpgscm/tests.scm | |
parent | tests: Use 233 for invalid value of FD. (diff) | |
download | gnupg-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 '')
-rw-r--r-- | tests/gpgscm/tests.scm | 4 |
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)) |