Browse Source

Fix tests for "condition-case-unless-debug" usage

Ryan C. Thompson 7 years ago
parent
commit
3098761c84
1 changed files with 5 additions and 1 deletions
  1. 5 1
      tests/test-ido-completing-read+.el

+ 5 - 1
tests/test-ido-completing-read+.el

@@ -514,7 +514,11 @@ also accept a quoted list for the sake of convenience."
                   (cond
                    ((equal text "")
                     '("hello" "goodbye" "helicopter" "helium" "goodness" "goodwill"))
-                   (t (error "This collection throws an error on a nonempty prefix")))))))
+                   (t (error "This collection throws an error on a nonempty prefix"))))))
+              ;; The test framework uses the debugger to catch error
+              ;; stack traces, but we want to run this code as if it
+              ;; was not being debugged.
+              (debug-on-error nil))
           (expect
            (with-simulated-input '("hell TAB RET")
              (ido-completing-read+ "Say something: " collection))