From b1e044cb569b598ff33bd02e7f3fab03b9a20403 Mon Sep 17 00:00:00 2001 From: Syohei YOSHIDA Date: Fri, 26 Feb 2016 20:24:56 +0900 Subject: [PATCH] Check whether markdown-command is installed Markdown is not rendered if markdown-command is not installed. This causes unexpected test failure. --- tests/markdown-test.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/markdown-test.el b/tests/markdown-test.el index 379247f2..45ebb93b 100644 --- a/tests/markdown-test.el +++ b/tests/markdown-test.el @@ -3782,8 +3782,10 @@ Detail: https://github.com/jrblevin/markdown-mode/issues/79" (ad-activate #'markdown-live-preview-window-eww))))) (defmacro markdown-test-eww-or-nothing (test &rest body) - (if (and (fboundp 'libxml-parse-html-region) (require 'eww nil t)) `(progn ,@body) - (message "no eww, or no libxml2 found: skipping %s" test) + (if (and (fboundp 'libxml-parse-html-region) (require 'eww nil t) + (executable-find markdown-command)) + `(progn ,@body) + (message "no eww, no libxml2, or no %s found: skipping %s" markdown-command test) nil)) (ert-deftest test-markdown-ext/live-preview-exports ()