gpgscm: Capture output of spawned processes.
authorJustus Winter <justus@g10code.com>
Thu, 7 Jul 2016 14:18:10 +0000 (16:18 +0200)
committerJustus Winter <justus@g10code.com>
Thu, 7 Jul 2016 14:18:10 +0000 (16:18 +0200)
commit2f61aa0ff11b194d20307751ab686c87cd47dd56
tree1cbfefe68e09d55748f62efaac24c4f0e28dc454
parent511c2522b95333226a5e45e538fed29dd44c9be3
gpgscm: Capture output of spawned processes.

* tests/gpgscm/tests.scm (call-check): Capture stdout and stderr, and
return stdout if the child exited successfully, or include stderr in
the error.
* tests/openpgp/version.scm: Demonstrate this by checking the stdout.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/gpgscm/tests.scm
tests/openpgp/version.scm