浏览代码

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

Ryan C. Thompson 7 年之前
父节点
当前提交
3098761c84
共有 1 个文件被更改,包括 5 次插入1 次删除
  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))