emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 44fcd37a486 08/11: Add more c-ts-mode indent tests


From: Yuan Fu
Subject: Re: master 44fcd37a486 08/11: Add more c-ts-mode indent tests
Date: Wed, 4 Dec 2024 22:50:14 -0800


> On Dec 4, 2024, at 12:19 AM, Michael Albinus <michael.albinus@gmx.de> wrote:
> 
> Yuan Fu <casouri@gmail.com> writes:
> 
> Hi Yuan,
> 
>> branch: master
>> commit 44fcd37a486399be048fb03b9456497af78632fe
>> Author: Yuan Fu <casouri@gmail.com>
>> Commit: Yuan Fu <casouri@gmail.com>
>> 
>>    Add more c-ts-mode indent tests
> 
> This fails on emba:
> 
> --8<---------------cut here---------------start------------->8---
> Running 4 tests (2024-12-04 01:34:21+0000, selector `(and (not (or (tag 
> :unstable) (tag :nativecomp))) (or "^treesit" "-ts-"))')
>   passed  1/4  c-ts-mode-test-filling (0.242501 sec)
> Test c-ts-mode-test-indentation backtrace:
>  signal(ert-test-failed (("Mismatch in test \"For Loop with Multi-lin
>  ert-fail(("Mismatch in test \"For Loop with Multi-line Condition (GN
>  ert-test--erts-test(((code lambda nil (c-ts-mode) (setq-local indent
>  ert-test-erts-file("/checkout/test/lisp/progmodes/c-ts-mode-resource
>  #f(compiled-function () #<bytecode 0x165c4c7bd62c9ac5>)()
>  #f(compiled-function () #<bytecode -0x13aaedb12a291e2f>)()
>  handler-bind-1(#f(compiled-function () #<bytecode -0x13aaedb12a291e2
>  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>  ert-run-test(#s(ert-test :name c-ts-mode-test-indentation :documenta
>  ert-run-or-rerun-test(#s(ert--stats :selector (and (not ...) (or "^t
>  ert-run-tests((and (not (or (tag :unstable) (tag :nativecomp))) (or
>  ert-run-tests-batch((and (not (or (tag :unstable) (tag :nativecomp))
>  ert-run-tests-batch-and-exit((and (not (or (tag :unstable) (tag :nat
>  eval((ert-run-tests-batch-and-exit '(and (not (or (tag :unstable) (t
>  command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
>  command-line()
>  normal-top-level()
> Test c-ts-mode-test-indentation condition:
>    (ert-test-failed
>     ("Mismatch in test \"For Loop with Multi-line Condition (GNU Style)\", 
> file /checkout/test/lisp/progmodes/c-ts-mode-resources/indent.erts"
>      #("int main()\n{\n  for (\n       int i = 0;\n       i < b;\n       
> i++\n      )\n      {\n        return 0;\n      }\n}\n"
> 0 108 (fontified nil))
>      "int main()\n{\n  for (\n       int i = 0;\n       i < b;\n       i++\n  
>     )\n    {\n      return 0;\n    }\n}\n"))
>   FAILED  2/4  c-ts-mode-test-indentation (0.132145 sec) at 
> lisp/progmodes/c-ts-mode-tests.el:26
>   passed  3/4  c-ts-mode-test-indentation-bsd (0.087755 sec)
>   passed  4/4  c-ts-mode-test-indentation-preproc (0.049779 sec)
> 
> Ran 4 tests, 3 results as expected, 1 unexpected (2024-12-04 01:34:23+0000, 
> 1.849321 sec)
> --8<---------------cut here---------------end--------------->8---
> 
> See <https://emba.gnu.org/emacs/emacs/-/jobs/93972/raw>.
> 
> Best regards, Michael.

This is baffling. I assume the pipeline build the latest tree-sitter-c/cpp 
grammar right? I just updated my grammar and tree-sitter lib to the latest and 
the tests still pass on my machine. Is tree-sitter version also the latest?

Yuan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]