emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/merge-cedet-tests aa72e43 200/316: Fix unit testin


From: Edward John Steere
Subject: [Emacs-diffs] scratch/merge-cedet-tests aa72e43 200/316: Fix unit testing for several tests and do better error checking.
Date: Sat, 28 Jan 2017 09:10:01 +0000 (UTC)

branch: scratch/merge-cedet-tests
commit aa72e439160f990c9c1646b32366449842fdfc85
Author: David Engster <address@hidden>
Commit: Edward John Steere <address@hidden>

    Fix unit testing for several tests and do better error checking.
    
    * semantic/lex-spp-utests.el (semantic-lex-spp-write-utest):
    * tests/cedet-utests.el (cedet-utest-eieio-classloader): Throw
      error if we cannot locate test files.
    
    * semantic/utest-c.el (semantic-utest-c-compare)
      (semantic-utest-c-conditionals):
    * semantic/lex-spp-utest.el (semantic-lex-spp-write-utest): Adapt
      to new directory structure and do better error checking to avoid
      silent failures in the future.
---
 test/manual/cedet/cedet-utests.el |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/manual/cedet/cedet-utests.el 
b/test/manual/cedet/cedet-utests.el
index f9d6e5f..ecfc4c3 100644
--- a/test/manual/cedet/cedet-utests.el
+++ b/test/manual/cedet/cedet-utests.el
@@ -197,10 +197,14 @@ of just logging the error."
 (defun cedet-utest-eieio-classloader ()
   "Try out the EIEIO tests, which just requires loading the test file."
   (let ((lib (locate-library "eieio/eieio-tests.el" t)))
+    (unless lib
+      (error "Could not locate 'eieio/eieio-tests.el'"))
     (message "EIEIO Base tests loading from: %S" lib)
     (load-file lib)
     )
   (let ((lib (locate-library "eieio/eieio-test-methodinvoke.el" t)))
+    (unless lib
+      (error "Could not locate 'eieio/eieio-test-methodinvoke.el'"))
     (message "EIEIO MethodInvoke tests loading from: %S" lib)
     (load-file lib)
     ))



reply via email to

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