aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-09-01 13:15:54 +0200
committerGitHub <noreply@github.com>2023-09-01 13:15:54 +0200
commitb88784278fcd5c2d0bec077d6baaa0ec3f71b28f (patch)
tree681e2c5bac8118052f5690a4dc5f479ca901553e /tests
parent46478b44ffb477387235b3c597c24178845fb2a3 (diff)
parent1e08e12d8138b09e6872cb498b723ade9ad71d68 (diff)
Merge pull request #8869 from hercules-ci/fix-issue-8838-pathExists-isDir
Fix #8838, pathExists: isDir when ends with `/ `
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/eval-okay-pathexists.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lang/eval-okay-pathexists.nix b/tests/lang/eval-okay-pathexists.nix
index 50c28ee0c..e1246e370 100644
--- a/tests/lang/eval-okay-pathexists.nix
+++ b/tests/lang/eval-okay-pathexists.nix
@@ -1,4 +1,7 @@
-builtins.pathExists (builtins.toPath ./lib.nix)
+builtins.pathExists (./lib.nix)
+&& builtins.pathExists (builtins.toPath ./lib.nix)
+&& builtins.pathExists (builtins.toString ./lib.nix)
+&& !builtins.pathExists (builtins.toString ./lib.nix + "/")
&& builtins.pathExists (builtins.toPath (builtins.toString ./lib.nix))
&& !builtins.pathExists (builtins.toPath (builtins.toString ./bla.nix))
&& builtins.pathExists ./lib.nix