diff options
| author | john muhl | 2024-04-27 18:52:41 -0500 |
|---|---|---|
| committer | Yuan Fu | 2024-05-08 20:36:37 -0700 |
| commit | 4eb363acc825ef3aaa5468ab5e206ecab5883acb (patch) | |
| tree | 164f38fb2ce1af3440ab566f43898a69a4faefcb /test | |
| parent | 03d4b96da62fbb7abfb7fa8fcfc963313e394f22 (diff) | |
| download | emacs-4eb363acc825ef3aaa5468ab5e206ecab5883acb.tar.gz emacs-4eb363acc825ef3aaa5468ab5e206ecab5883acb.zip | |
; Quietly skip 'lua-ts-mode' tests (bug#70786)
* test/lisp/align-tests.el (align-lua):
* test/lisp/progmodes/lua-ts-mode-tests.el
(lua-ts-test-indentation):
(lua-ts-test-movement):
(lua-ts-test-font-lock):
(lua-ts-test-which-function): Suppress warnings when the grammar is not
installed.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/align-tests.el | 2 | ||||
| -rw-r--r-- | test/lisp/progmodes/lua-ts-mode-tests.el | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/lisp/align-tests.el b/test/lisp/align-tests.el index cd309ea07bf..eaebaf8360c 100644 --- a/test/lisp/align-tests.el +++ b/test/lisp/align-tests.el | |||
| @@ -52,7 +52,7 @@ | |||
| 52 | (autoload 'treesit-ready-p "treesit") | 52 | (autoload 'treesit-ready-p "treesit") |
| 53 | 53 | ||
| 54 | (ert-deftest align-lua () | 54 | (ert-deftest align-lua () |
| 55 | (skip-unless (treesit-ready-p 'lua)) | 55 | (skip-unless (treesit-ready-p 'lua t)) |
| 56 | (let ((comment-column 20) | 56 | (let ((comment-column 20) |
| 57 | (indent-tabs-mode nil)) | 57 | (indent-tabs-mode nil)) |
| 58 | (ert-test-erts-file (ert-resource-file "lua-ts-mode.erts") | 58 | (ert-test-erts-file (ert-resource-file "lua-ts-mode.erts") |
diff --git a/test/lisp/progmodes/lua-ts-mode-tests.el b/test/lisp/progmodes/lua-ts-mode-tests.el index a7b637d18d1..68b8c9ccfaa 100644 --- a/test/lisp/progmodes/lua-ts-mode-tests.el +++ b/test/lisp/progmodes/lua-ts-mode-tests.el | |||
| @@ -26,20 +26,20 @@ | |||
| 26 | (require 'which-func) | 26 | (require 'which-func) |
| 27 | 27 | ||
| 28 | (ert-deftest lua-ts-test-indentation () | 28 | (ert-deftest lua-ts-test-indentation () |
| 29 | (skip-unless (treesit-ready-p 'lua)) | 29 | (skip-unless (treesit-ready-p 'lua t)) |
| 30 | (ert-test-erts-file (ert-resource-file "indent.erts"))) | 30 | (ert-test-erts-file (ert-resource-file "indent.erts"))) |
| 31 | 31 | ||
| 32 | (ert-deftest lua-ts-test-movement () | 32 | (ert-deftest lua-ts-test-movement () |
| 33 | (skip-unless (treesit-ready-p 'lua)) | 33 | (skip-unless (treesit-ready-p 'lua t)) |
| 34 | (ert-test-erts-file (ert-resource-file "movement.erts"))) | 34 | (ert-test-erts-file (ert-resource-file "movement.erts"))) |
| 35 | 35 | ||
| 36 | (ert-deftest lua-ts-test-font-lock () | 36 | (ert-deftest lua-ts-test-font-lock () |
| 37 | (skip-unless (treesit-ready-p 'lua)) | 37 | (skip-unless (treesit-ready-p 'lua t)) |
| 38 | (let ((treesit-font-lock-level 4)) | 38 | (let ((treesit-font-lock-level 4)) |
| 39 | (ert-font-lock-test-file (ert-resource-file "font-lock.lua") 'lua-ts-mode))) | 39 | (ert-font-lock-test-file (ert-resource-file "font-lock.lua") 'lua-ts-mode))) |
| 40 | 40 | ||
| 41 | (ert-deftest lua-ts-test-which-function () | 41 | (ert-deftest lua-ts-test-which-function () |
| 42 | (skip-unless (treesit-ready-p 'lua)) | 42 | (skip-unless (treesit-ready-p 'lua t)) |
| 43 | (with-temp-buffer | 43 | (with-temp-buffer |
| 44 | (insert-file-contents (ert-resource-file "which-function.lua")) | 44 | (insert-file-contents (ert-resource-file "which-function.lua")) |
| 45 | (lua-ts-mode) | 45 | (lua-ts-mode) |