mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
parent
49cf090cb2
commit
5ccb06ee1b
4 changed files with 21 additions and 4 deletions
13
tests/functional/debugger.sh
Normal file
13
tests/functional/debugger.sh
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue