mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-16 10:50:49 -08:00
Fix a semantic test on some macOS machines
* test/lisp/cedet/semantic/bovine/gcc-tests.el (semantic-gcc-test-output-parser-this-machine): Fix test on some macOS machines where running "gcc" runs "llvm" instead.
This commit is contained in:
parent
ac6ac76e3a
commit
2d15db6e89
1 changed files with 6 additions and 1 deletions
|
|
@ -124,6 +124,11 @@ gcc version 2.95.2 19991024 (release)"
|
||||||
"Test the output parser against the machine currently running Emacs."
|
"Test the output parser against the machine currently running Emacs."
|
||||||
(skip-unless (executable-find "gcc"))
|
(skip-unless (executable-find "gcc"))
|
||||||
(let ((semantic-gcc-test-strings (list (semantic-gcc-query "gcc" "-v"))))
|
(let ((semantic-gcc-test-strings (list (semantic-gcc-query "gcc" "-v"))))
|
||||||
(semantic-gcc-test-output-parser)))
|
;; Some macOS machines run llvm when you type gcc. (!)
|
||||||
|
;; We can't even check if it's a symlink; it's a binary placed in
|
||||||
|
;; "/usr/bin/gcc". So check the output and just skip this test if
|
||||||
|
;; it says "Apple LLVM".
|
||||||
|
(unless (string-match "Apple LLVM" (car semantic-gcc-test-strings))
|
||||||
|
(semantic-gcc-test-output-parser))))
|
||||||
|
|
||||||
;;; gcc-tests.el ends here
|
;;; gcc-tests.el ends here
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue