mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-01 11:14:55 +00:00
Skip a Flymake test for old gcc versions
Fixes: 28906 * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types): Skip this test for gcc versions < 5.
This commit is contained in:
parent
fd3d8610b2
commit
d815de017b
@ -24,6 +24,7 @@
|
|||||||
;;; Code:
|
;;; Code:
|
||||||
(require 'ert)
|
(require 'ert)
|
||||||
(require 'flymake)
|
(require 'flymake)
|
||||||
|
(require 'subr-x) ; string-trim
|
||||||
|
|
||||||
(defvar flymake-tests-data-directory
|
(defvar flymake-tests-data-directory
|
||||||
(expand-file-name "lisp/progmodes/flymake-resources"
|
(expand-file-name "lisp/progmodes/flymake-resources"
|
||||||
@ -128,7 +129,11 @@ SEVERITY-PREDICATE is used to setup
|
|||||||
|
|
||||||
(ert-deftest different-diagnostic-types ()
|
(ert-deftest different-diagnostic-types ()
|
||||||
"Test GCC warning via function predicate."
|
"Test GCC warning via function predicate."
|
||||||
(skip-unless (and (executable-find "gcc") (executable-find "make")))
|
(skip-unless (and (executable-find "gcc")
|
||||||
|
(version<=
|
||||||
|
"5" (string-trim
|
||||||
|
(shell-command-to-string "gcc -dumpversion")))
|
||||||
|
(executable-find "make")))
|
||||||
(let ((flymake-wrap-around nil))
|
(let ((flymake-wrap-around nil))
|
||||||
(flymake-tests--with-flymake
|
(flymake-tests--with-flymake
|
||||||
("errors-and-warnings.c")
|
("errors-and-warnings.c")
|
||||||
|
Loading…
Reference in New Issue
Block a user