aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/debugger.sh
blob: 63d88cbf35bc8bfd16481061ab4aa4d354aa893f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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