emacs-diffs
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]