aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-fail-duplicate-traces.err.exp
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 07:35:20 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 07:35:20 +0100
commit96f1a404d08d1dd00ef395bcdc53c7599c860ecf (patch)
treec2c10849ccfa865ae649be873fa9ed0d6d4d4da6 /tests/functional/lang/eval-fail-duplicate-traces.err.exp
parente1b1e6f7abb62b7e86a1d12aead1bd931089cd7a (diff)
Merge pull request #9617 from 9999years/stack-overflow-segfault
Fix segfault on infinite recursion in some cases (cherry picked from commit bf1b294bd81ca76c5ec9fe3ecd52196bf52a8300) Change-Id: Id137541426ec8536567835953fccf986a3aebf16
Diffstat (limited to 'tests/functional/lang/eval-fail-duplicate-traces.err.exp')
-rw-r--r--tests/functional/lang/eval-fail-duplicate-traces.err.exp44
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/functional/lang/eval-fail-duplicate-traces.err.exp b/tests/functional/lang/eval-fail-duplicate-traces.err.exp
new file mode 100644
index 000000000..32ad9b376
--- /dev/null
+++ b/tests/functional/lang/eval-fail-duplicate-traces.err.exp
@@ -0,0 +1,44 @@
+error:
+ … from call site
+ at /pwd/lang/eval-fail-duplicate-traces.nix:9:3:
+ 8| in
+ 9| throwAfter 2
+ | ^
+ 10|
+
+ … while calling 'throwAfter'
+ at /pwd/lang/eval-fail-duplicate-traces.nix:4:16:
+ 3| let
+ 4| throwAfter = n:
+ | ^
+ 5| if n > 0
+
+ … from call site
+ at /pwd/lang/eval-fail-duplicate-traces.nix:6:10:
+ 5| if n > 0
+ 6| then throwAfter (n - 1)
+ | ^
+ 7| else throw "Uh oh!";
+
+ … while calling 'throwAfter'
+ at /pwd/lang/eval-fail-duplicate-traces.nix:4:16:
+ 3| let
+ 4| throwAfter = n:
+ | ^
+ 5| if n > 0
+
+ … from call site
+ at /pwd/lang/eval-fail-duplicate-traces.nix:6:10:
+ 5| if n > 0
+ 6| then throwAfter (n - 1)
+ | ^
+ 7| else throw "Uh oh!";
+
+ … while calling 'throwAfter'
+ at /pwd/lang/eval-fail-duplicate-traces.nix:4:16:
+ 3| let
+ 4| throwAfter = n:
+ | ^
+ 5| if n > 0
+
+ error: Uh oh!