diff options
| author | Stefan Kangas | 2021-10-17 03:00:10 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2021-10-17 03:05:08 +0200 |
| commit | 2d15db6e892456b0577990c8dac7f48d39a915cd (patch) | |
| tree | ca8c796f66f5d4bc0daffffa4a621d075a96f103 | |
| parent | ac6ac76e3ae5ca96607ac7eba4a3ccf146fc8815 (diff) | |
| download | emacs-2d15db6e892456b0577990c8dac7f48d39a915cd.tar.gz emacs-2d15db6e892456b0577990c8dac7f48d39a915cd.zip | |
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.
| -rw-r--r-- | test/lisp/cedet/semantic/bovine/gcc-tests.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/lisp/cedet/semantic/bovine/gcc-tests.el b/test/lisp/cedet/semantic/bovine/gcc-tests.el index 93677d6c871..d049f95b4cd 100644 --- a/test/lisp/cedet/semantic/bovine/gcc-tests.el +++ b/test/lisp/cedet/semantic/bovine/gcc-tests.el | |||
| @@ -124,6 +124,11 @@ gcc version 2.95.2 19991024 (release)" | |||
| 124 | "Test the output parser against the machine currently running Emacs." | 124 | "Test the output parser against the machine currently running Emacs." |
| 125 | (skip-unless (executable-find "gcc")) | 125 | (skip-unless (executable-find "gcc")) |
| 126 | (let ((semantic-gcc-test-strings (list (semantic-gcc-query "gcc" "-v")))) | 126 | (let ((semantic-gcc-test-strings (list (semantic-gcc-query "gcc" "-v")))) |
| 127 | (semantic-gcc-test-output-parser))) | 127 | ;; Some macOS machines run llvm when you type gcc. (!) |
| 128 | ;; We can't even check if it's a symlink; it's a binary placed in | ||
| 129 | ;; "/usr/bin/gcc". So check the output and just skip this test if | ||
| 130 | ;; it says "Apple LLVM". | ||
| 131 | (unless (string-match "Apple LLVM" (car semantic-gcc-test-strings)) | ||
| 132 | (semantic-gcc-test-output-parser)))) | ||
| 128 | 133 | ||
| 129 | ;;; gcc-tests.el ends here | 134 | ;;; gcc-tests.el ends here |