mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
tests: Test the exit code of 'guix environment'.
This is a followup to d2cef62
.
* tests/guix-environment.sh: Add test for the exit code.
This commit is contained in:
parent
a8afb9aed3
commit
4931dfcdfd
1 changed files with 8 additions and 0 deletions
|
@ -39,6 +39,14 @@ test "`wc -l < "$tmpdir/a"`" = 1
|
|||
|
||||
cmp "$tmpdir/a" "$tmpdir/b"
|
||||
|
||||
# Make sure the exit value is preserved.
|
||||
if guix environment --ad-hoc guile-bootstrap --pure -E 'guile -c "(exit 42)"'
|
||||
then
|
||||
false
|
||||
else
|
||||
test $? = 42
|
||||
fi
|
||||
|
||||
if guile -c '(getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)' 2> /dev/null
|
||||
then
|
||||
# Compute the build environment for the initial GNU Make.
|
||||
|
|
Loading…
Reference in a new issue