From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: master 44fcd37a486 08/11: Add more c-ts-mode indent tests Date: Wed, 4 Dec 2024 22:50:14 -0800 Message-ID: References: <173310542049.252624.8341603519407599366@vcs3.savannah.gnu.org> <20241202021023.5060A521787@vcs3.savannah.gnu.org> <87plm7zwqx.fsf@gmx.de> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35035"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 05 07:51:27 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tJ5hv-0008ya-0h for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Dec 2024 07:51:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJ5h7-0002gK-OO; Thu, 05 Dec 2024 01:50:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tJ5gz-0002fO-KO for emacs-devel@gnu.org; Thu, 05 Dec 2024 01:50:29 -0500 Original-Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tJ5gx-0001Yj-L4 for emacs-devel@gnu.org; Thu, 05 Dec 2024 01:50:29 -0500 Original-Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-7fc41b4c78bso382921a12.3 for ; Wed, 04 Dec 2024 22:50:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733381426; x=1733986226; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=C0GqguNay1j/dFyEXMgQLDnxyN5rPq52HLvRXujTvHQ=; b=VTk5NHUuSbtP9eZN78onbIrOB+t8Ic1hyj44Vtqn58k/7BQu5Elloo7LxZg6ovu2Aa 3KjsCeLBaUY4bII7V4n2hmMNfySygh0yEn6TILyqQ3kpeUB11p4Xbk7Jo9ik4CLD0o1U LKwMwTGQ3M3JakHpYaF6dw/8ibq7S1i7tH9rRRYEP2Fk5AELDmGSXBEgeWNgLcfyElKe rsWsSPYje7iKlf44+jv0xMPGGIiXHToScZjFYgtYCQYfn/7MS3DtbiqM/7JCkKkMmmZH BBFChToQtw/Dhj8NN6bQxFgkHm6sjBWApeXbTkxk+1qxXZOw+fkNcL3NnIdzrBr4Wtxv ndiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733381426; x=1733986226; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=C0GqguNay1j/dFyEXMgQLDnxyN5rPq52HLvRXujTvHQ=; b=ed2axLhAyiP4Vy/lg+fNvju5/FGifYkGJAJMon8d/n/RJQh2s86gGvLISYhvejpC2m 1dsfSayh4YhOX3sIEbTeHwbYN9J/zIWEzWd01NXhR7mlmjwOeloA5F/m9rxulct8FiPB 1Fcm9ff6ACR1ap8RA8f04uj02KqN4sItQ+a2NiZqekxjBTM1dmflt+sdc/Z27ZyHAmZR oAeiL4DC6FdZuSwtPtUU6rkKdsXkig6jrTiC+zkeYIVy55RMh8JQzmMxsCMcIe7oxvJP 0XIR/QBlkUk1Q0dc5+tQQL6G1Kr/kmW6b9egQbRcKlytFr9G44+dGOmYK//B7zyaSnad xJEQ== X-Gm-Message-State: AOJu0YxnImOSLlB7SFFYMmHxC16qsb29szkFz2jRXvgivad6M74sjaew oy7bmeFq1NOEKCKItsB9a7ZG6qHQjx6daaCChVC6Vi6pPKv0NtVvnTGitQ== X-Gm-Gg: ASbGncsAblxVsQIZL/BpexnVqkyINt6G27+0fajdZ7BdM9Jk3AEl8JNU8Gg1+WVtilH yO4yb+24urZ5+45+j6CJpqnoDPcFfElGdAYok//lISRi4laZqizPkabiWFlCI9+7oh5Sanw5kcZ kA/POrnZpOZtnM4i1vb7ynj69UMR6Abre72nYTtCcfkJ1RWjUm2Sf0USzokC3XJJsYwh4qb77lU 1TNfoNADS6m1IlfUqRUEF5504xYvOfoT/BtfMEl4fzlI/CDbBPXChOb1Okwjka27b07GC25Ww== X-Google-Smtp-Source: AGHT+IGxmDpGE0zTEr5NtzyCOHH5fKGCsrhAXr7pNUy6GKtsisluJclP1y8nVo/S49f0uNHBWVIvZw== X-Received: by 2002:a05:6a21:33a1:b0:1e1:3853:5722 with SMTP id adf61e73a8af0-1e1653f6b7fmr15841367637.35.1733381426026; Wed, 04 Dec 2024 22:50:26 -0800 (PST) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:d4a2:bdb3:ccbc:4058]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7fd157b1306sm613901a12.60.2024.12.04.22.50.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Dec 2024 22:50:25 -0800 (PST) In-Reply-To: <87plm7zwqx.fsf@gmx.de> X-Mailer: Apple Mail (2.3776.700.51) Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=casouri@gmail.com; helo=mail-pg1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326072 Archived-At: > On Dec 4, 2024, at 12:19=E2=80=AFAM, Michael Albinus = wrote: >=20 > Yuan Fu writes: >=20 > Hi Yuan, >=20 >> branch: master >> commit 44fcd37a486399be048fb03b9456497af78632fe >> Author: Yuan Fu >> Commit: Yuan Fu >>=20 >> Add more c-ts-mode indent tests >=20 > This fails on emba: >=20 > --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 () #)() > #f(compiled-function () #)() > handler-bind-1(#f(compiled-function () # 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 =3D 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 =3D 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) >=20 > Ran 4 tests, 3 results as expected, 1 unexpected (2024-12-04 = 01:34:23+0000, 1.849321 sec) > --8<---------------cut here---------------end--------------->8--- >=20 > See . >=20 > 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=