1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-07 23:10:28 -08:00
emacs/test/lisp/progmodes
João Távora 81c6569e65 Flymake: unbreak tests
Flymake's normal behaviour implies catching the errors of misbehaving
backends.  This behavior is tested by Flymake's automated tests, built
on top of ERT, which means that debug-on-error is always t in the
bodies of said tests (I don't know the rationale for this, but it's
been like this for some time)

Flymake used to shun usage of 'condition-case-unless-debug' because of
this.  But since that macro is pretty useful, I started using it
again, and as a consequence, tests started breaking.

The solution is to:

1. stop requiring the deprecated legacy backend 'flymake-proc' (which
by design, always errors, except in rare circumstances).

2. deliberately set debug-on-error to nil around the "dummy backends""
test.

* lisp/progmodes/flymake.el (flymake-proc): Don't require it by
default.

* test/lisp/progmodes/flymake-tests.el:
(dummy-backends): Make robust to ert's debug-on-error setting.
2023-09-24 09:07:27 +01:00
..
c-ts-mode-resources Fix some cases of incomplete code's indentation [c/c++-ts-mode] 2023-04-10 02:58:46 +03:00
cperl-mode-resources cperl-mode.el: Subroutine names are fontified correctly in all places 2023-08-02 23:59:42 +02:00
elisp-mode-resources
elixir-ts-mode-resources Improve call indentation for elixir-ts-mode 2023-04-29 12:16:56 +03:00
flymake-resources
go-ts-mode-resources
heex-ts-mode-resources Add heex-ts-mode (Bug#61996) 2023-03-12 17:40:06 +02:00
java-ts-mode-resources
js-resources
lua-ts-mode-resources bug#65673: Add lua-ts-mode 2023-09-16 13:01:43 +03:00
project-resources
ruby-mode-resources
sh-script-resources
typescript-ts-mode-resources
xref-resources
asm-mode-tests.el
autoconf-tests.el
bat-mode-tests.el
bug-reference-tests.el
c-ts-mode-tests.el
cc-mode-tests.el
compile-tests.el
cperl-mode-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
eglot-tests.el ; Silence byte-compiler 2023-09-06 14:15:00 +02:00
elisp-mode-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
elixir-ts-mode-tests.el ; Fix source file headers for some test files (bug#62227) 2023-03-17 09:05:50 +02:00
etags-tests.el
executable-tests.el
f90-tests.el
flymake-tests.el Flymake: unbreak tests 2023-09-24 09:07:27 +01:00
gdb-mi-tests.el
glasses-tests.el
go-ts-mode-tests.el
grep-tests.el
heex-ts-mode-tests.el ; Fix source file headers for some test files (bug#62227) 2023-03-17 09:05:50 +02:00
hideshow-tests.el
java-ts-mode-tests.el
js-tests.el Make js-beginning-of-defun return non-nil on success 2023-06-29 08:37:15 +03:00
lua-ts-mode-tests.el bug#65673: Add lua-ts-mode 2023-09-16 13:01:43 +03:00
octave-tests.el
opascal-tests.el
pascal-tests.el
perl-mode-tests.el Fix perl-mode indentation after a hanging paren 2023-09-07 00:13:53 +02:00
project-tests.el (project-try-vc): When found non-VC project root, still search for the backend 2023-09-06 23:30:42 +03:00
ps-mode-tests.el
python-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
ruby-mode-tests.el ruby-add-log-current-method: Reduce the use of 'nreverse' 2023-04-13 00:46:11 +03:00
ruby-ts-mode-tests.el Skip ruby-ts-imenu-index test if needed 2023-03-28 13:04:09 +02:00
scheme-tests.el
sh-script-tests.el
sql-tests.el
subword-tests.el
tcl-tests.el
typescript-ts-mode-tests.el
xref-tests.el