[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests e9c9716 279/316: Fixes for exter
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests e9c9716 279/316: Fixes for external db tests |
Date: |
Fri, 27 Jan 2017 20:03:47 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit e9c9716fbdc7312aa34c9507a6ffa300295c1850
Author: zappo <address@hidden>
Commit: Edward John Steere <address@hidden>
Fixes for external db tests
* test/manual/cedet/cit-externaldb.el: (cit-externaldb-files-to-find):
Change files to those common between Make and AutoMake.
(cit-gnu-externaldb-test-one): Require ede-locate Call
`ede-enable-locate-on-project' to start/end the test so that the
locate system is available for the project later.
---
test/manual/cedet/cit-externaldb.el | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/test/manual/cedet/cit-externaldb.el
b/test/manual/cedet/cit-externaldb.el
index 9c3d8c2..5f50fc2 100644
--- a/test/manual/cedet/cit-externaldb.el
+++ b/test/manual/cedet/cit-externaldb.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2010 Eric M. Ludlam
;;
;; Author: Eric M. Ludlam <address@hidden>
-;; X-RCS: $Id: cit-externaldb.el,v 1.1 2010-06-13 01:12:50 zappo Exp $
+;; X-RCS: $Id: cit-externaldb.el,v 1.2 2010-06-13 13:54:59 zappo Exp $
;;
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
@@ -35,7 +35,8 @@
(defvar cit-externaldb-files-to-find
'(("foo.hpp" . "include/foo.hpp")
- ("bar.cpp" . "src/bar.cpp")
+ ;;("foo.cpp" . "src/foo.cpp")
+ ("umltest.cpp" . "uml/umltest.cpp")
;("elfoo.el" . "src/elfoo.el")
;("foodoc.texi" . "src/foodoc.texi")
;("DNE.cpp" . "doesnotexist.cpp")
@@ -114,10 +115,14 @@
(funcall createfcn nil)
;; 2) force ede's find file to use gnu global
+ (require 'ede-locate)
(let* ((ede-locate-setup-options (list edelocatesym))
(base default-directory)
(fname nil))
+ ;; Change the locate tool active on this project.
+ (ede-enable-locate-on-project)
+
(dolist (F cit-externaldb-files-to-find)
(let* ((raw (ede-expand-filename (ede-current-project) (car F)))
(expect (cdr F))
@@ -127,10 +132,14 @@
(when (not (string= result expect))
(error "%s: Expected %s; Found %s" symrefsym expect result))
))
+
+ (let ((fail (ede-expand-filename (ede-current-project)
"doesnotexist.cpp")))
+ (if fail
+ (error "%s TEST: Found a file that shouldn't exist." symrefsym)))
)
- (let ((fail (ede-expand-filename (ede-current-project)
"doesnotexist.cpp")))
- (if fail
- (error "%s TEST: Found a file that shouldn't exist." symrefsym)))
+
+ ;; After removing the old locate system, restore the old one.
+ (ede-enable-locate-on-project)
;; 3) Look up tags with a GNU Global database
(if semanticdbenablefcn
- [Emacs-diffs] scratch/merge-cedet-tests 9480090 261/316: Test updating the project version, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 9480090 261/316: Test updating the project version, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests c89acc2 305/316: Add test code for use with sources in globalref, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests a9cd804 265/316: New tests., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests c132878 122/316: Make unit tests use randomized file names, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests bfed386 181/316: (cit-finish-message): Add a pause, then exit with a status of "1"., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ba748b5 174/316: Added gnustep tests, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 5ef7a99 157/316: tests: Fix typo in ede/detect-utest, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 876d3e9 138/316: New EDE project for testing dirmatch features., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 49b4ce7 213/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 2f8e8c8 272/316: Remove eieio bits and only use eieio bits for make types, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests e9c9716 279/316: Fixes for external db tests,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests bef87bf 290/316: Make unit tests use randomized file names, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 101da66 306/316: Don't scan other files because Util.cc is already in a buffer, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests a60b900 267/316: Fix provide., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ab1acb9 300/316: Test refactor/move, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 446edba 291/316: Base template for cit testing., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 1d09e4c 217/316: C++: Deal with 'using' statements when calculating scope, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 07892f6 287/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9767368 308/316: Synchronize cedet/semantic with Emacs., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 7f7d6bf 229/316: Synchronize cedet/srecode with Emacs., Edward John Steere, 2017/01/27