branch: elpa/d-mode
commit c9febb330f9119736ce804a8d36145018ecbce79
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
d-mode-test: Always ignore .res files
These are created to save results of failed tests.
Successive runs may confuse them with test cases, and run them.
---
d-mode-test.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/d-mode-test.el b/d-mode-test.el
index 371a161..04eae2a 100644
--- a/d-mode-test.el
+++ b/d-mode-test.el
@@ -312,6 +312,8 @@ the reference file, raise an error."
(cond
((string-match-p "\\`\\.\\.?\\'" filename)
nil)
+ ((string-match-p "\\.res" filename)
+ nil)
((string-match-p "\\.\\(d\\|txt\\)\\'" filename)
`((ert-deftest ,(intern (file-name-sans-extension filename)) ()
:expected-result (if (d-test-get-expected-result ,path)
:passed :failed)