[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests cebc72c 228/316: Make unit tests
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests cebc72c 228/316: Make unit tests use randomized file names |
Date: |
Sat, 28 Jan 2017 09:10:04 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit cebc72c6615799da5b2a6dfe6aa89d723477b989
Author: David Engster <address@hidden>
Commit: Edward John Steere <address@hidden>
Make unit tests use randomized file names
* tests/cedet/semantic/stltest.el:
* tests/cedet/semantic/utest-parse.el:
* tests/cedet/srecode/fields-utest.el:
* tests/cedet/srecode/test-getset.el:
* tests/cedet/srecode/test.el:
* tests/eieio/eieio-test-persist.el: Make all those tests use
`make-temp-name' for their test files, so that tests can run in
parallel.
---
test/manual/cedet/cedet/srecode/fields-utest.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/test/manual/cedet/cedet/srecode/fields-utest.el
b/test/manual/cedet/cedet/srecode/fields-utest.el
index f883ae5..f46982f 100644
--- a/test/manual/cedet/cedet/srecode/fields-utest.el
+++ b/test/manual/cedet/cedet/srecode/fields-utest.el
@@ -35,6 +35,11 @@
It is filled with some text."
"Text for tests.")
+(defvar srecode-field-utest-filename
+ (expand-file-name
+ (concat (make-temp-name "srecode-field-test-") ".txt")
+ temporary-file-directory))
+
;;;###autoload
(defun srecode-field-utest ()
"Test the srecode field manager."
@@ -46,8 +51,7 @@ It is filled with some text."
(defun srecode-field-utest-impl ()
"Implementation of the SRecode field utest."
(save-excursion
- (find-file "/tmp/srecode-field-test.txt")
-
+ (find-file srecode-field-utest-filename)
(erase-buffer)
(goto-char (point-min))
(insert srecode-field-utest-text)
@@ -241,6 +245,8 @@ It is filled with some text."
(set-buffer-modified-p nil)
(message " All field tests passed.")
+ (when (file-exists-p srecode-field-utest-filename)
+ (delete-file srecode-field-utest-filename))
))
- [Emacs-diffs] scratch/merge-cedet-tests 9c2d002 145/316: Added cpproot and java root to detection tests, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 9c2d002 145/316: Added cpproot and java root to detection tests, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 47c4081 165/316: sample lib srces for dirmatch tests., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests ef840da 159/316: compdb: add project detection tests, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 8c4e7fd 111/316: Added arduino and better suggestions, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 6945c33 126/316: Expand preprocessor to handle macros which open or close scope., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 89526ab 134/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 0e41dab 116/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 8ba639f 150/316: (ede-detect-utest-project-list): Add jvm-base projects for ant, lein, maven, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 284144e 154/316: Fixes for test execution, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests fa54ec1 162/316: (isFooLike, A, B, main2): New test tweaked from example by Liang Wang, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests cebc72c 228/316: Make unit tests use randomized file names,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests 7fce11d 056/316: Uniquafy names from last example from Martin to include ms_ prefix., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 779f839 032/316: (LOADPATH): Add speedbar. (EMACSFLAGS): New variable (Lisp): Use above., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 1c4ec31 045/316: Add test for parsing local variables, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 05006be 049/316: Semantic Symref testing., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests c2fada4 230/316: Force srecode repo location and add decorations to debug output, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests f916b8f 125/316: C/C++: Fix function pointer parsing, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests c40401d 273/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 19646a7 141/316: semantic/bovine/c: Add support for typedef references, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 5ef7a99 157/316: tests: Fix typo in ede/detect-utest, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 14c75f7 175/316: (cit-version): New variable. (semantic): New require, Edward John Steere, 2017/01/28