From b8571d68c4f2c0b4b0b8f3d7c7ef09668aab140f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 16 Oct 2013 23:28:10 +0200 Subject: [PATCH] Add a regression test for correct path antiquotation behavior This broke in Nix 1.6. --- tests/lang/eval-fail-antiquoted-path.nix | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/lang/eval-fail-antiquoted-path.nix diff --git a/tests/lang/eval-fail-antiquoted-path.nix b/tests/lang/eval-fail-antiquoted-path.nix new file mode 100644 index 0000000000..f2f08107b5 --- /dev/null +++ b/tests/lang/eval-fail-antiquoted-path.nix @@ -0,0 +1,4 @@ +# This must fail to evaluate, since ./fnord doesn't exist. If it did +# exist, it would produce "/nix/store/-fnord/xyzzy" (with an +# appropriate context). +"${./fnord}/xyzzy"