/gnu/build/

f='/guix/log/tests/inferior.scm?id=472706ae2f9160833951a4e4bcc4c206e03097b0'>Collapse)Author 2022-07-08guix: inferior: Fix the behaviour of open-inferior #:error-port.Christopher Baines I'm looking at this as the Guix Data Service uses this behaviour to record and display logs from inferior processes. * guix/inferior.scm (open-bidirectional-pipe): Call dup2 for file descriptor 2, passing either the file number for the current error port, or a file descriptor for /dev/null. * tests/inferior.scm ("#:error-port stderr", "#:error-port pipe"): Add two new tests that cover some of the #:error-port behaviour. 2022-05-20inferior: Close duplicate socketpair file descriptor.Ludovic Courtès * guix/inferior.scm (open-bidirectional-pipe): Pass SOCK_CLOEXEC to 'socketpair'. * tests/inferior.scm ("close-inferior"): Add test. 2021-05-15inferior: Support querying package replacements.Christopher Baines I'm looking at this to help with adding support for looking up package replacements to store in the Guix Data Service. * guix/inferior.scm (inferior-package-replacement): New procedure. * tests/inferior.scm ("inferior-package-replacement"): New test. 2021-04-29inferior: Make sure test refers to guile@3.0.Ludovic Courtès * tests/inferior.scm ("inferior-package-inputs"): Compare with GUILE-3.0-LATEST since that's what 'lookup-inferior-packages' returns. 2021-01-21repl: Fix exception handling for interpreted code.Ludovic Courtès The 'stack' variable could be #f when code is interpreted, which in practice happens when running in "legacy" mode--i.e., when 'open-inferior' invokes "guile" instead of "guix repl". * guix/repl.scm (send-repl-response)[handle-exception]: Check whether STACK is true before passing it to 'stack->frames'. * tests/inferior.scm ("&inferior-exception, legacy mode"): New test. 2021-01-21inferior: Add 'inferior-eval-with-store' tests.Ludovic Courtès * tests/inferior.scm ("inferior-eval-with-store, exception") ("inferior-eval-with-store, not a procedure"): New tests.