From 75837651f15fc3c451ae54afbb5927c1abe329c5 Mon Sep 17 00:00:00 2001 From: Iwan Aucamp Date: Fri, 31 Jul 2015 17:32:25 +0200 Subject: Output line number on infinite recursion --- tests/misc.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/misc.sh') diff --git a/tests/misc.sh b/tests/misc.sh index 1b4d8f2cf..6d0ab3adc 100644 --- a/tests/misc.sh +++ b/tests/misc.sh @@ -14,3 +14,6 @@ nix-env --version | grep "$version" # Usage errors. nix-env --foo 2>&1 | grep "no operation" nix-env -q --foo 2>&1 | grep "unknown flag" + +# Eval Errors. +nix-instantiate --eval -E 'let a = {} // a; in a.foo' 2>&1 | grep "infinite recursion encountered, at (string):1:15$" -- cgit v1.2.3