diff options
author | Noam Postavsky <npostavs@gmail.com> | 2017-11-11 11:10:49 -0500 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2017-11-11 11:12:00 -0500 |
commit | 1fa0766cfa17e37be77a1566dbc775ab4ce7ff2e (patch) | |
tree | 66f1607d41b0bc490f3202c327ecb3fcdc5746bf /test/lisp | |
parent | 1ef6d2b0e679c035dd2a1f2f858865eeafc5bc28 (diff) | |
parent | 9533d76b0b5bfe2df1cccc55a92c2545b1de4e2b (diff) | |
download | emacs-1fa0766cfa17e37be77a1566dbc775ab4ce7ff2e.tar.gz emacs-1fa0766cfa17e37be77a1566dbc775ab4ce7ff2e.tar.bz2 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/lisp')
-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 (flymake-tests--with-flymake ("test.pl") (flymake-goto-next-error) (should (eq 'flymake-warning (face-at-point))) - (flymake-goto-next-error) + (goto-char (point-max)) + (flymake-goto-prev-error) (should (eq 'flymake-error (face-at-point))))) (ert-deftest ruby-backend () "Test the ruby backend" (skip-unless (executable-find "ruby")) - (flymake-tests--with-flymake ("test.rb") - (flymake-goto-next-error) - (should (eq 'flymake-warning (face-at-point))) - (flymake-goto-next-error) - (should (eq 'flymake-error (face-at-point))))) + ;; Some versions of ruby fail if HOME doesn't exist (bug#29187). + (let* ((tempdir (make-temp-file "flymake-tests-ruby" t)) + (process-environment (cons (format "HOME=%s" tempdir) + process-environment))) + (unwind-protect + (flymake-tests--with-flymake ("test.rb") + (flymake-goto-next-error) + (should (eq 'flymake-warning (face-at-point))) + (flymake-goto-next-error) + (should (eq 'flymake-error (face-at-point)))) + (delete-directory tempdir t)))) (ert-deftest different-diagnostic-types () "Test GCC warning via function predicate." |