diff options
author | Filipp Gunbin <fgunbin@fastmail.fm> | 2019-10-31 21:39:01 +0300 |
---|---|---|
committer | Filipp Gunbin <fgunbin@fastmail.fm> | 2019-11-01 15:20:42 +0300 |
commit | 0bffb3e69d4f45b4f4bc553af3ed6e78cfd6bd49 (patch) | |
tree | 3b8d9f74915c1202d8523c4da4c0413ee091ff23 /test/lisp/progmodes/compile-tests.el | |
parent | 8758c96dc7f252944eb97b95c92081b157084477 (diff) | |
download | emacs-0bffb3e69d4f45b4f4bc553af3ed6e78cfd6bd49.tar.gz |
Make ant regexp in compilation-error-regexp-alist-alist more lax
* lisp/progmodes/compile.el: Make ant regexp accept filenames that may
occur on Cygwin (like c:/test) and optional additional severity level
after task name.
* etc/compilation.txt: Add sample.
Diffstat (limited to 'test/lisp/progmodes/compile-tests.el')
-rw-r--r-- | test/lisp/progmodes/compile-tests.el | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/test/lisp/progmodes/compile-tests.el b/test/lisp/progmodes/compile-tests.el index e38c31dd0a4..4c2ce83ddeb 100644 --- a/test/lisp/progmodes/compile-tests.el +++ b/test/lisp/progmodes/compile-tests.el @@ -55,11 +55,19 @@ 25 nil 8 "errors.c") ;; ant ("[javac] /src/DataBaseTestCase.java:27: unreported exception ..." - 13 nil 27 "/src/DataBaseTestCase.java") + 13 nil 27 "/src/DataBaseTestCase.java" 2) ("[javac] /src/DataBaseTestCase.java:49: warning: finally clause cannot complete normally" - 13 nil 49 "/src/DataBaseTestCase.java") + 13 nil 49 "/src/DataBaseTestCase.java" 1) ("[jikes] foo.java:3:5:7:9: blah blah" - 14 (5 . 10) (3 . 7) "foo.java") + 14 (5 . 10) (3 . 7) "foo.java" 2) + ("[javac] c:/cygwin/Test.java:12: error: foo: bar" + 9 nil 12 "c:/cygwin/Test.java" 2) + ("[javac] c:\\cygwin\\Test.java:87: error: foo: bar" + 9 nil 87 "c:\\cygwin\\Test.java" 2) + ;; Checkstyle error, but ant reports a warning (note additional + ;; severity level after task name) + ("[checkstyle] [ERROR] /src/Test.java:38: warning: foo" + 22 nil 38 "/src/Test.java" 1) ;; bash ("a.sh: line 1: ls-l: command not found" 1 nil 1 "a.sh") @@ -420,8 +428,8 @@ The test data is in `compile-tests--test-regexps-data'." (compilation-num-warnings-found 0) (compilation-num-infos-found 0)) (mapc #'compile--test-error-line compile-tests--test-regexps-data) - (should (eq compilation-num-errors-found 90)) - (should (eq compilation-num-warnings-found 35)) + (should (eq compilation-num-errors-found 92)) + (should (eq compilation-num-warnings-found 36)) (should (eq compilation-num-infos-found 26))))) (ert-deftest compile-test-grep-regexps () |