[Format] Fix clang-format.el unit tests after commit f349cc37cc485fd5f
authorSam McCall <sam.mccall@gmail.com>
Mon, 11 Nov 2019 16:52:31 +0000 (17:52 +0100)
committerSam McCall <sam.mccall@gmail.com>
Mon, 11 Nov 2019 16:55:38 +0000 (17:55 +0100)
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

index ee0eaaa..41df1a9 100644 (file)
@@ -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,