; Skip 'csharp-ts-mode' test if grammar is missing
authorjohn muhl <jm@pub.pink>
Sat, 27 Apr 2024 14:55:42 +0000 (09:55 -0500)
committerEli Zaretskii <eliz@gnu.org>
Sat, 27 Apr 2024 19:08:45 +0000 (22:08 +0300)
* test/lisp/progmodes/csharp-mode-tests.el
(csharp-ts-mode-test-indentation): Skip test instead of
failing.  (Bug#70345)

test/lisp/progmodes/csharp-mode-tests.el

index 2878fa601f261cdc35fd6737a27e34f9ac89770c..b3c57a7026b3dfea3ac771e31113592d53bb04ca 100644 (file)
@@ -27,6 +27,7 @@
   (ert-test-erts-file (ert-resource-file "indent.erts")))
 
 (ert-deftest csharp-ts-mode-test-indentation ()
+  (skip-unless (treesit-ready-p 'c-sharp))
   (ert-test-erts-file (ert-resource-file "indent-ts.erts")))
 
 (provide 'csharp-mode-tests)