aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test3.in5
-rw-r--r--tests/test3.out2
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/test3.in b/tests/test3.in
index 816e94ec..4dec9a83 100644
--- a/tests/test3.in
+++ b/tests/test3.in
@@ -246,6 +246,9 @@ env SHLVL=" 3" ../fish -c 'echo SHLVL: $SHLVL'
# Test transformation of inherited variables
env DISPLAY="localhost:0.0" ../fish -c 'echo Elements in DISPLAY: (count $DISPLAY)'
-env PATH="/bin:/sbin:/usr/bin:/usr/sbin" ../fish -c 'echo Elements in PATH: (count $PATH)'
+# We can't use PATH for this because the global configuration will modify PATH
+# based on /etc/paths and /etc/paths.d.
+# At the moment, most variables split on :. So we can use an arbitrary variable for this.
+env FOO="one:two:three:four" ../fish -c 'echo Elements in FOO: (count $FOO)'
true
diff --git a/tests/test3.out b/tests/test3.out
index 31ad6cb2..5d3a48b2 100644
--- a/tests/test3.out
+++ b/tests/test3.out
@@ -29,4 +29,4 @@ SHLVL: 1
SHLVL: 4
SHLVL: 4
Elements in DISPLAY: 1
-Elements in PATH: 4
+Elements in FOO: 4