aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-03-09 23:59:50 -0800
committerJade Lovelace <lix@jade.fyi>2024-03-15 12:31:16 -0700
commitaf066af7f30784c9244c8428acae4b0fbffd3992 (patch)
tree9ceb8c3c9cce6d6a22993fafceb6911d46909999 /tests
parent78513b1fc8366ade7bd2315f24e08ede5141c0a9 (diff)
repl_characterization: Also verify the stack trace exists
Change-Id: I8b2d8211a24011fae1586a1182d7d0772a039cd7
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/repl_characterization/data/regression_9917.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/functional/repl_characterization/data/regression_9917.test b/tests/functional/repl_characterization/data/regression_9917.test
index a37ea5805..44ca951b5 100644
--- a/tests/functional/repl_characterization/data/regression_9917.test
+++ b/tests/functional/repl_characterization/data/regression_9917.test
@@ -8,6 +8,26 @@ This test ensures that continues don't skip opportunities to enter the debugger.
trace: before inner break
info: breakpoint reached
+ nix-repl> :bt
+
+ 0: error: breakpoint reached
+ «none»:0
+ 1: while calling a function
+ TEST_DATA/regression_9917.nix:3:5
+
+ 2| a = builtins.trace "before inner break" (
+ 3| builtins.break { msg = "hello"; }
+ | ^
+ 4| );
+
+ 2: while calling a function
+ TEST_DATA/regression_9917.nix:2:7
+
+ 1| let
+ 2| a = builtins.trace "before inner break" (
+ | ^
+ 3| builtins.break { msg = "hello"; }
+
nix-repl> :c
nix-repl> msg