(comint-carriage-motion (process-mark proc) (point)))
(set-marker (process-mark proc) (point))
;; Update the number of errors in compilation-mode-line-errors
- (font-lock-ensure compilation-filter-start (point))
+ (compilation--ensure-parse (point))
;; (set (make-local-variable 'compilation-buffer-modtime)
;; (current-time))
(run-hooks 'compilation-filter-hook))
The test data is in `compile-tests--test-regexps-data'."
(with-temp-buffer
(font-lock-mode -1)
- (mapc #'compile--test-error-line compile-tests--test-regexps-data)))
+ (mapc #'compile--test-error-line compile-tests--test-regexps-data)
+ (should (eq compilation-num-errors-found 87))
+ (should (eq compilation-num-warnings-found 32))
+ (should (eq compilation-num-infos-found 20))))
(ert-deftest compile-test-grep-regexps ()
"Test the `grep-regexp-alist' regexps.
(should (equal msg1 msg2))))
(dolist (testcase compile-tests--grep-regexp-tricky-testcases)
(ert-info ((format "%S" testcase) :prefix "testcase: ")
- (compile--test-error-line testcase)))))
+ (compile--test-error-line testcase)))
+ (should (eq compilation-num-errors-found 8))))
;;; compile-tests.el ends here