aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorSilvan Mosberger <silvan.mosberger@tweag.io>2023-02-17 19:23:09 +0100
committerYorick van Pelt <yorick@yorickvanpelt.nl>2023-05-26 15:36:44 +0200
commitbe4890747051de0e489d608fdba65489c45d2b02 (patch)
tree20d39a2ce9ae8f53e1cfd3ed8fb72c8303c5b12b /src/libutil
parentf41dd2c306a5986340b04c1635bd674e4a01b78d (diff)
ci: Always run with sandbox, even on Darwin
And fix a test failure in the sandbox due to /home existing on Darwin but not being accessible in the sandbox since it's a symlink to /System/Volumes/Data/home, see https://github.com/NixOS/nix/actions/runs/4205378453/jobs/7297384658#step:6:2127: C++ exception with description "error: getting status of /home/schnitzel/darmstadt/pommes: Operation not permitted" thrown in the test body. On Linux this wasn't a problem because there /home doesn't exist in the sandbox
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/tests/tests.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/tests/tests.cc b/src/libutil/tests/tests.cc
index 250e83a38..f3c1e8248 100644
--- a/src/libutil/tests/tests.cc
+++ b/src/libutil/tests/tests.cc
@@ -202,7 +202,7 @@ namespace nix {
}
TEST(pathExists, bogusPathDoesNotExist) {
- ASSERT_FALSE(pathExists("/home/schnitzel/darmstadt/pommes"));
+ ASSERT_FALSE(pathExists("/schnitzel/darmstadt/pommes"));
}
/* ----------------------------------------------------------------------------