diff options
author | Eduard Wiebe <usenet@pusto.de> | 2013-06-21 10:36:13 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2013-06-21 10:36:13 -0400 |
commit | c5b0993e5f54a664d7edbdf9caffb43555618c51 (patch) | |
tree | ecf4f7c6ac5af5b19a3bb86a166ce0d30fbd0551 /test/automated/flymake | |
parent | a7d2d4654e2dd1075df0c45c15cae52924a44ada (diff) |
Extend flymake's warning predicate to be a function. Test suite for flymake.
* lisp/progmodes/flymake.el (flymake-warning-predicate): New.
(flymake-parse-line): Use it.
(flymake-warning-re): Make obsolete alias to
`flymake-warning-predicate'.
* doc/misc/flymake.texi (Parsing the output, Customizable variables):
Add reference to `flymake-warning-predicate'.
* test/automated/flymake-tests.el:
* test/automated/flymake/warnpred/Makefile
* test/automated/flymake/warnpred/test.c
* test/automated/flymake/warnpred/test.pl: New files.
Fixes: debbugs:14217
Diffstat (limited to 'test/automated/flymake')
-rw-r--r-- | test/automated/flymake/warnpred/Makefile | 8 | ||||
-rw-r--r-- | test/automated/flymake/warnpred/test.c | 5 | ||||
-rw-r--r-- | test/automated/flymake/warnpred/test.pl | 2 |
3 files changed, 15 insertions, 0 deletions
diff --git a/test/automated/flymake/warnpred/Makefile b/test/automated/flymake/warnpred/Makefile new file mode 100644 index 0000000000..33af51c333 --- /dev/null +++ b/test/automated/flymake/warnpred/Makefile @@ -0,0 +1,8 @@ +# Makefile for flymake tests + +CC_OPTS = -Wall + +check-syntax: + $(CC) $(CC_OPTS) ${CHK_SOURCES} + +# eof diff --git a/test/automated/flymake/warnpred/test.c b/test/automated/flymake/warnpred/test.c new file mode 100644 index 0000000000..3a3926131f --- /dev/null +++ b/test/automated/flymake/warnpred/test.c @@ -0,0 +1,5 @@ +int main() +{ + char c = 1000; + return c; +} diff --git a/test/automated/flymake/warnpred/test.pl b/test/automated/flymake/warnpred/test.pl new file mode 100644 index 0000000000..2013b2e443 --- /dev/null +++ b/test/automated/flymake/warnpred/test.pl @@ -0,0 +1,2 @@ +@arr = [1,2,3,4]; +@arr[1] = -1; |