mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2026-10-05 02:56:22 +00:00
'main' tests: Don't assume ps(1) is available.
It's actually unavailable in the minimal chroots Debian builds our package on. That's allowed by POSIX, which specifies ps(1) to be optional, whereas id(1) — - is not optional in POSIX - should exist on every system anyone might run the testsuite on - has the same length name, so test expectations don't have to be updated - doesn't take a filename argument (ditto) That does make the pipeline as a whole somewhat nonsensical semantically, but it remains just as valid syntactically.
This commit is contained in:
1 parent
e0165eaa73
commit
5eb677bb0f
2 files changed
+2
-2
No files matched your search
@@ -27,7 +27,7 @@
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='ps aux | grep java | sort | uniq | tail | head'
|
||||
BUFFER='id bob | grep java | sort | uniq | tail | head'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 2 command" # ps
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='ps aux | grep java'
|
||||
BUFFER='id bob | grep java'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 2 command" # ps
|
||||
|
||||
Reference in new issue
Block a user