]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix unit testing for several tests and do better error checking.
authorDavid Engster <dengste@eml.cc>
Thu, 1 Dec 2011 19:13:55 +0000 (20:13 +0100)
committerEdward John Steere <edward.steere@gmail.com>
Wed, 25 Jan 2017 17:18:33 +0000 (19:18 +0200)
* 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

index f9d6e5f984357eb262b0ec67e3df51b7c3f86705..ecfc4c32e31774cdcfc20945927b3b8bc33bcb3a 100644 (file)
@@ -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)
     ))