diff options
| author | Noam Postavsky | 2017-11-11 11:10:49 -0500 |
|---|---|---|
| committer | Noam Postavsky | 2017-11-11 11:12:00 -0500 |
| commit | 1fa0766cfa17e37be77a1566dbc775ab4ce7ff2e (patch) | |
| tree | 66f1607d41b0bc490f3202c327ecb3fcdc5746bf /test | |
| parent | 1ef6d2b0e679c035dd2a1f2f858865eeafc5bc28 (diff) | |
| parent | 9533d76b0b5bfe2df1cccc55a92c2545b1de4e2b (diff) | |
| download | emacs-1fa0766cfa17e37be77a1566dbc775ab4ce7ff2e.tar.gz emacs-1fa0766cfa17e37be77a1566dbc775ab4ce7ff2e.zip | |
; Merge from emacs-26
9533d76b0b Keep Man sections in natural order (bug#28998)
d63c9a96f5 * lisp/minibuffer.el: Install a workaround for bug#16274
7657a86709 Fix comparisons with tip_frame in GTK builds
603a0716a8 Improve the documentation of M-n for entering file names
72f813fb56 Fix desktop auto-save timer when linum-mode is used
44340b475f Fix "C-h k" in xterm-mouse-mode
05aa6d4a68 Fix off-by-1 bug in --enable-checking=stringbytes
096f638ddc Correct the indentation of C99's compound literals.
c52a2aa8f3 Improve the doc string of 'dired-isearch-filter-filenames'
e592b92482 * lisp/isearch.el (search-invisible): Doc fix. (Bug#29222)
f3e69a80ab Fix display of line numbers in GTK builds
e6f1fd4091 Fix previous change to flymake-diag-region (bug#29174)
89382780e1 flymake-diag-region really returns nil if region is invali...
535688a418 Flymake correctly highlights whole last line if eob (bug#2...
72e62d3fdb Protect Flymake checkdoc backend against checkdoc errors (...
b28de57411 Sort entries of the Flymake diagnostics buffer (bug#29175)
fc56bea142 Correctly indent C++14 brace lists which are a second argu...
9dde8be9cd Fix redisplay of overlay-arrows on GUI frames
0da08f2f8e Protect Flymake tests against older Ruby and Perl (bug#29187)
781f276cc1 Fix URL cookie expiration bug
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/progmodes/flymake-tests.el | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/test/lisp/progmodes/flymake-tests.el b/test/lisp/progmodes/flymake-tests.el index c60f9100345..05214e7a927 100644 --- a/test/lisp/progmodes/flymake-tests.el +++ b/test/lisp/progmodes/flymake-tests.el | |||
| @@ -114,17 +114,24 @@ SEVERITY-PREDICATE is used to setup | |||
| 114 | (flymake-tests--with-flymake ("test.pl") | 114 | (flymake-tests--with-flymake ("test.pl") |
| 115 | (flymake-goto-next-error) | 115 | (flymake-goto-next-error) |
| 116 | (should (eq 'flymake-warning (face-at-point))) | 116 | (should (eq 'flymake-warning (face-at-point))) |
| 117 | (flymake-goto-next-error) | 117 | (goto-char (point-max)) |
| 118 | (flymake-goto-prev-error) | ||
| 118 | (should (eq 'flymake-error (face-at-point))))) | 119 | (should (eq 'flymake-error (face-at-point))))) |
| 119 | 120 | ||
| 120 | (ert-deftest ruby-backend () | 121 | (ert-deftest ruby-backend () |
| 121 | "Test the ruby backend" | 122 | "Test the ruby backend" |
| 122 | (skip-unless (executable-find "ruby")) | 123 | (skip-unless (executable-find "ruby")) |
| 123 | (flymake-tests--with-flymake ("test.rb") | 124 | ;; Some versions of ruby fail if HOME doesn't exist (bug#29187). |
| 124 | (flymake-goto-next-error) | 125 | (let* ((tempdir (make-temp-file "flymake-tests-ruby" t)) |
| 125 | (should (eq 'flymake-warning (face-at-point))) | 126 | (process-environment (cons (format "HOME=%s" tempdir) |
| 126 | (flymake-goto-next-error) | 127 | process-environment))) |
| 127 | (should (eq 'flymake-error (face-at-point))))) | 128 | (unwind-protect |
| 129 | (flymake-tests--with-flymake ("test.rb") | ||
| 130 | (flymake-goto-next-error) | ||
| 131 | (should (eq 'flymake-warning (face-at-point))) | ||
| 132 | (flymake-goto-next-error) | ||
| 133 | (should (eq 'flymake-error (face-at-point)))) | ||
| 134 | (delete-directory tempdir t)))) | ||
| 128 | 135 | ||
| 129 | (ert-deftest different-diagnostic-types () | 136 | (ert-deftest different-diagnostic-types () |
| 130 | "Test GCC warning via function predicate." | 137 | "Test GCC warning via function predicate." |