[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 6232932f4b: Fix issue with nativecomp tests leaving files behind
From: |
Lars Ingebrigtsen |
Subject: |
master 6232932f4b: Fix issue with nativecomp tests leaving files behind in /tmp |
Date: |
Tue, 24 May 2022 11:25:32 -0400 (EDT) |
branch: master
commit 6232932f4bb0630ef4656ed2f8e977fd7fb59952
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Fix issue with nativecomp tests leaving files behind in /tmp
* test/src/comp-tests.el (comp-deftest): Ensure that no files are left
behind (bug#55611).
---
test/src/comp-tests.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index 212d9e999f..e7b534d00e 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -51,7 +51,14 @@
(doc-string 3))
`(ert-deftest ,(intern (concat "comp-tests-" (symbol-name name))) ,args
:tags '(:nativecomp)
- ,@docstring-and-body))
+ ,@(and (stringp (car docstring-and-body))
+ (list (pop docstring-and-body)))
+ ;; Some of the tests leave spill files behind -- so create a
+ ;; sub-dir where native-comp can do its work, and then delete it
+ ;; at the end.
+ (ert-with-temp-directory dir
+ (let ((temporary-file-directory dir))
+ ,@docstring-and-body))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 6232932f4b: Fix issue with nativecomp tests leaving files behind in /tmp,
Lars Ingebrigtsen <=