mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 00:47:30 +00:00
Fix tests on macOS 10.10
All usages of `mktemp` must go through the (fish-only) `mktemp` test function that abstracts over the differences across multiple platforms/flavors. Tests can be easily run individually via `ninja -C build test_xxx` and there isn't a good reason to randomly manually override $HOME and $XDG_CONFIG_HOME for a test here and a test there. If it's absolutely necessary, littlecheck.py should be extended to support a `%temp` variable initialized to a temporary directory and that can be used instead of calling out to the platform-provided `mktemp` via a subshell.
This commit is contained in:
parent
604fa867ac
commit
c90ac7bf7f
2 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
|||
# Explicitly overriding HOME/XDG_CONFIG_HOME is only required if not invoking via `make test`
|
||||
# RUN: env HOME="$(mktemp -d)" XDG_CONFIG_HOME="$(mktemp -d)" %fish --features '' -c 'string match --quiet "??" ab ; echo "qmarkon: $status"'
|
||||
# RUN: env %fish --features '' -c 'string match --quiet "??" ab ; echo "qmarkon: $status"'
|
||||
#CHECK: qmarkon: 0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Explicitly overriding HOME/XDG_CONFIG_HOME is only required if not invoking via `make test`
|
||||
# RUN: env FISH=%fish HOME="$(mktemp -d)" XDG_CONFIG_HOME="$(mktemp -d)" %fish %s
|
||||
# RUN: env FISH=%fish %fish %s
|
||||
# Environment variable tests
|
||||
|
||||
# Test if variables can be properly set
|
||||
|
|
Loading…
Reference in a new issue