Test trace and addErrorContext

This commit is contained in:
Eelco Dolstra 2014-02-26 19:12:31 +01:00
parent 5ad263c26b
commit 7880973827

View file

@ -2,6 +2,10 @@ source common.sh
export TEST_VAR=foo # for eval-okay-getenv.nix
nix-instantiate --eval -E 'builtins.trace "Hello" 123' 2>&1 | grep -q Hello
! nix-instantiate --show-trace --eval -E 'builtins.addErrorContext "Hello" 123' 2>&1 | grep -q Hello
nix-instantiate --show-trace --eval -E 'builtins.addErrorContext "Hello" (throw "Foo")' 2>&1 | grep -q Hello
set +x
fail=0