From 1dca6aaafa9f842565deab1fe7e6929f25544551 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 15 Mar 2020 17:26:45 +0100 Subject: inferior: '&inferior-exception' includes a stack trace. * guix/inferior.scm (port->inferior): Bump protocol to (0 1 1). (&inferior-exception)[stack]: New field. (read-repl-response): Recognize 'exception' form for protocol (0 1 1). * tests/inferior.scm ("&inferior-exception"): Check the value returned by 'inferior-exception-stack'. --- tests/inferior.scm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/inferior.scm b/tests/inferior.scm index b4417d8629..2f5215920b 100644 --- a/tests/inferior.scm +++ b/tests/inferior.scm @@ -68,6 +68,9 @@ (guard (c ((inferior-exception? c) (close-inferior inferior) (and (eq? inferior (inferior-exception-inferior c)) + (match (inferior-exception-stack c) + (((_ (files lines columns)) ..1) + (member "guix/repl.scm" files))) (inferior-exception-arguments c)))) (inferior-eval '(throw 'a 'b 'c 'd) inferior) 'badness))) -- cgit v1.2.3