diff options
Diffstat (limited to 'test/testdata/eval-fail-duplicate-traces.nix')
-rw-r--r-- | test/testdata/eval-fail-duplicate-traces.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/testdata/eval-fail-duplicate-traces.nix b/test/testdata/eval-fail-duplicate-traces.nix new file mode 100644 index 0000000..17ce374 --- /dev/null +++ b/test/testdata/eval-fail-duplicate-traces.nix | |||
@@ -0,0 +1,9 @@ | |||
1 | # Check that we only omit duplicate stack traces when there's a bunch of them. | ||
2 | # Here, there's only a couple duplicate entries, so we output them all. | ||
3 | let | ||
4 | throwAfter = n: | ||
5 | if n > 0 | ||
6 | then throwAfter (n - 1) | ||
7 | else throw "Uh oh!"; | ||
8 | in | ||
9 | throwAfter 2 | ||