From: David Engster Date: Sun, 27 Nov 2011 19:04:01 +0000 (+0100) Subject: Fix interactive unit tests. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dd9777f005336ddfc3ba27027787862320966e65;p=emacs.git Fix interactive unit tests. * pulse-utest.el (pulse-test): Use normal overlay functions. * cedet-utests.el (chart): Require. --- diff --git a/test/manual/cedet/pulse-utest.el b/test/manual/cedet/pulse-utest.el index 6d838f264e5..46cd1497f74 100644 --- a/test/manual/cedet/pulse-utest.el +++ b/test/manual/cedet/pulse-utest.el @@ -62,11 +62,11 @@ When optional NO-ERROR Don't throw an error if we can't run tests." (when (not (eobp)) (forward-char 1)) (point))) - (o (pulse-make-overlay start end)) + (o (make-overlay start end)) ) (pulse-momentary-highlight-overlay o) - (if (pulse-overlay-live-p o) - (pulse-overlay-delete o) + (if (overlay-buffer o) + (delete-overlay o) (error "Non-temporary overlay was deleted!")) ) (when (cedet-called-interactively-p)