]> git.eshelyaron.com Git - emacs.git/commitdiff
Added arduino and better suggestions
authorEric Ludlam <zappo@gnu.org>
Thu, 23 Oct 2014 02:05:36 +0000 (22:05 -0400)
committerEdward John Steere <edward.steere@gmail.com>
Wed, 25 Jan 2017 15:59:25 +0000 (17:59 +0200)
* test/manual/cedet/cedet/ede/secure-utest.el:
 (ede-security-project-entries): Add arduino.
 (ede-security-test-one-entry): Improve an error w/ suggestion on a
 thing to fix.

test/manual/cedet/cedet/ede/secure-utest.el

index 028374129aacd922dbf5f00cbc4071402896e3c5..471997cf3b84f5125fe91bf3e20731a7ed4cac04 100644 (file)
@@ -66,6 +66,10 @@ permitted.")
                     :classp 'ede-generic-cmake-project-p
                     :hazzard nil
                     :has-config t)
+   (ede-security-entry "arduino" :file "src/arduino/Blink/Blink.ino"
+                    :classp 'ede-arduino-project-p
+                    :hazzard nil
+                    :has-config t)
    )
   "List of project test entries to try.")
 
@@ -204,7 +208,8 @@ permitted.")
            ;; Make sure the config was automatically ignored.
            (unless (and (oref config ignored-file)
                         (eq (oref config ignored-file) 'auto))
-             (error "Configuration was not auto-ignored."))
+             (error "Configuration was not auto-ignored. [%S]"
+                    (oref config ignored-file)))
 
            ;; Force loading a project, but say no.
            (setq ede-check-project-query-fcn 'ede-security-question-no)
@@ -219,7 +224,11 @@ permitted.")
            ;; Make sure the config was manually ignored via our NO fcn.
            (unless (and (oref config ignored-file)
                         (eq (oref config ignored-file) 'manual))
-             (error "Configuration was not manually-ignored."))
+             (if (eq (oref config ignored-file) 'auto)
+                 (error "Configuration was not manually ignored.
+Make sure project-rescan has (call-next-method)")
+               (error "Configuration was not manually-ignored. [%S]"
+                      (oref config ignored-file))))
 
 
            ;; Now agree to load the config.