eldritch horrors
647d762ab5
fix debugger crashing while printing envs
(cherry picked from commit 9b8b4860913afdb7f9cb1e1e81f9a9dd192cd1c1)
Change-Id: Ica6a17e4b3e3b8b8093719f442c28be7f13be09d
14 lines
350 B
Bash
14 lines
350 B
Bash
source common.sh
|
|
|
|
clearStore
|
|
|
|
# regression #9932
|
|
echo ":env" | expect 1 nix eval --debugger --expr '(_: throw "oh snap") 42'
|
|
echo ":env" | expect 1 nix eval --debugger --expr '
|
|
let x.a = 1; in
|
|
with x;
|
|
(_: builtins.seq x.a (throw "oh snap")) x.a
|
|
' >debugger-test-out
|
|
grep -P 'with: .*a' debugger-test-out
|
|
grep -P 'static: .*x' debugger-test-out
|