[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests bef87bf 290/316: Make unit tests
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests bef87bf 290/316: Make unit tests use randomized file names |
Date: |
Sat, 28 Jan 2017 09:10:12 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit bef87bf80a33493102ae844e1bbeb8060efa938b
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/semantic/utest-parse.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/test/manual/cedet/cedet/semantic/utest-parse.el
b/test/manual/cedet/cedet/semantic/utest-parse.el
index 04cf977..aa52e5e 100644
--- a/test/manual/cedet/cedet/semantic/utest-parse.el
+++ b/test/manual/cedet/cedet/semantic/utest-parse.el
@@ -30,9 +30,8 @@
(require 'semantic)
-(defvar semantic-utest-temp-directory (if (fboundp 'temp-directory)
- (temp-directory)
- temporary-file-directory)
+(defvar semantic-utest-temp-directory
+ (expand-file-name (make-temp-name "CEDET-UTEST-") temporary-file-directory)
"Temporary directory to use when creating files.")
(defun semantic-utest-fname (name)
@@ -868,6 +867,7 @@ INSERTME is the text to be inserted after the deletion."
(defun semantic-utest-main()
(interactive)
"call all utests"
+ (make-directory semantic-utest-temp-directory)
(cedet-utest-log-start "multi-lang parsing")
(cedet-utest-log " * C tests...")
(semantic-utest-C)
@@ -887,7 +887,7 @@ INSERTME is the text to be inserted after the deletion."
(semantic-utest-PHP)
(cedet-utest-log " * Csharp tests...")
(semantic-utest-Csharp)
-
+ (delete-directory semantic-utest-temp-directory)
(cedet-utest-log-shutdown "multi-lang parsing")
)
- [Emacs-diffs] scratch/merge-cedet-tests 5cc7300 264/316: Synchronize cedet/semantic with Emacs., (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 5cc7300 264/316: Synchronize cedet/semantic with Emacs., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 0caf48a 302/316: Improve test output, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 975468f 275/316: Add header comments and provide., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 60a3f4b 299/316: (semantic-ia-utest-file-list): add testwisent.wy, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests e492fd9 301/316: (semantic-ia-utest-file-list): Add testunion.cpp., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 644d6ca 278/316: Test external database tools., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 9cac087 281/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 7eeab10 240/316: (cit-remove-and-do-shared-lib): Enable for use with Make projects too. Create the srcs in a new lib directory., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests a4e395c 156/316: Add a final call to ede list sanity check, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 6d5a631 277/316: Add header comments and provide., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests bef87bf 290/316: Make unit tests use randomized file names,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests 47d9c79 295/316: Moved tests about, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 02c7dbb 310/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 0a0dd27 167/316: Test typedef which has the keyword "class" included, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests dfddc2d 262/316: (cit-make-dist): Use cit-check-compilation-for-error., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests da4dd24 253/316: New test for testing ede/cpp-root projects., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 8d32d3a 160/316: Fix parsing of default values and display them in default formatter, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests e96e309 178/316: Added new subdir and ensure that the base dir, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 4972b30 176/316: (ede, ede-make): New require (cit-srecode-verify-tags): Fix debugging output on failure. Patch from David Engster (cit-compile-and-wait): Use ede-make-command, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests e4d6b74 280/316: Use new create functions for db tools, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 8cb6670 304/316: Fake ver_linux for project detection purposes., Edward John Steere, 2017/01/28