From a81c1a9c56300669b9edcb187f8f751fd06c2d29 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Mon, 11 Nov 2019 17:52:31 +0100 Subject: [PATCH] [Format] Fix clang-format.el unit tests after commit f349cc37cc485fd5f Also add a comment that test is not automatically run, and how to run it. Patch by Philipp Stephani! --- clang/tools/clang-format/clang-format-test.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clang/tools/clang-format/clang-format-test.el b/clang/tools/clang-format/clang-format-test.el index ee0eaaa..41df1a9 100644 --- a/clang/tools/clang-format/clang-format-test.el +++ b/clang/tools/clang-format/clang-format-test.el @@ -10,7 +10,8 @@ ;;; Commentary: -;; Unit tests for clang-format.el. +;; Unit tests for clang-format.el. Not run by lit, run as: +;; emacs -Q -batch -l clang/tools/clang-format/clang-format.el -l clang/tools/clang-format/clang-format-test.el -f ert-run-tests-batch-and-exit ;;; Code: @@ -58,6 +59,7 @@ (should-not display) (should (equal args '("-output-replacements-xml" "-assume-filename" "foo.cpp" + "-fallback-style" "none" ;; Beginning of buffer, no byte-order mark. "-offset" "0" ;; We have two lines with 2×2 bytes for the umlauts, -- 2.7.4