There is a page in the GNU Standards document regarding the format of error messages. Both GNU Emacs and Vim are able to parse it and support jumping to next/previous error. My version did not produce a line in this format for failed tests and this commit rectifies that.
* module/srfi/srfi-64.scm (test-on-test-end-simple)[non-passed]: Write out (standards)Errors compatible line. Reported-by: Janneke Nieuwenhuizen <jann...@gnu.org> --- module/srfi/srfi-64.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/srfi/srfi-64.scm b/module/srfi/srfi-64.scm index 203db49ea..98f6c8114 100644 --- a/module/srfi/srfi-64.scm +++ b/module/srfi/srfi-64.scm @@ -28,6 +28,7 @@ #:use-module (ice-9 format) #:use-module (ice-9 match) #:use-module (srfi srfi-1) + #:use-module (srfi srfi-2) #:use-module (srfi srfi-9) #:use-module (srfi srfi-26) #:use-module (srfi srfi-71) @@ -431,6 +432,10 @@ instead." result-kind (test-runner-test-name runner)) (unless (member result-kind '(pass xfail)) + (and-let* ((file (test-result-ref runner 'source-file)) + (line (test-result-ref runner 'source-line))) + ;; Satisfy (standards)Errors + (format #t "~a:~a: unexpected result~%" file line)) (maybe-print-prop 'source-file #f "~a") (maybe-print-prop 'source-line #f "~a") (maybe-print-prop 'source-form #t "~y") -- 2.46.0