aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-fail-nonexist-path.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/lang/eval-fail-nonexist-path.nix')
-rw-r--r--tests/functional/lang/eval-fail-nonexist-path.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/functional/lang/eval-fail-nonexist-path.nix b/tests/functional/lang/eval-fail-nonexist-path.nix
new file mode 100644
index 000000000..f2f08107b
--- /dev/null
+++ b/tests/functional/lang/eval-fail-nonexist-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/<hash>-fnord/xyzzy" (with an
+# appropriate context).
+"${./fnord}/xyzzy"