aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/parse-fail-path-slash.nix
diff options
context:
space:
mode:
authorRebecca Turner <rbt@sent.as>2024-04-04 15:42:47 -0700
committerRebecca Turner <rbt@sent.as>2024-04-04 15:49:30 -0700
commit0fec7d2db6d7f05ab228f12a6b57b2cd4a64276b (patch)
tree3f31f4d0b8c56689981ffcd526b67a8be19fada0 /tests/functional/lang/parse-fail-path-slash.nix
parent9166babbaf5882ad2cfe1c7c9b30de1c153d70a8 (diff)
Rename some parse failure tests to `parse-fail-*`
These were mistakenly labeled `eval-fail-*`. Note that the `lang.sh` runner passes `parse-fail-*` tests on stdin, so filenames are removed from error messages. Change-Id: I7f3a0d78b6cfa87af29aaa1b7af19d5a57fd4ade
Diffstat (limited to 'tests/functional/lang/parse-fail-path-slash.nix')
-rw-r--r--tests/functional/lang/parse-fail-path-slash.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functional/lang/parse-fail-path-slash.nix b/tests/functional/lang/parse-fail-path-slash.nix
new file mode 100644
index 000000000..8c2e104c7
--- /dev/null
+++ b/tests/functional/lang/parse-fail-path-slash.nix
@@ -0,0 +1,6 @@
+# Trailing slashes in paths are not allowed.
+# This restriction could be lifted sometime,
+# for example if we make '/' a path concatenation operator.
+# See https://github.com/NixOS/nix/issues/1138
+# and https://nixos.org/nix-dev/2016-June/020829.html
+/nix/store/