vermiculus / emake.el

Test Elisp without the hoops
MIT License
28 stars 3 forks source link

EMake don't fail when ~error-on-warn #6

Closed DamienCassou closed 6 years ago

DamienCassou commented 6 years ago
  1. Add a compilation warning to your lisp file (e.g., make a call to a non-existing function)
  2. run $(EMAKE) compile ~error-on-warn

Expected: an non-zero exit status Actual: a zero exit statut

The function batch-byte-compile does exit with non-zero exit status but emake uses byte-compile-file which doesn't.

A workaround is to change (string-match "^.*:Warning: \\(.*\\)$" (buffer-string)) to also match Error:.