Skip to content

Commit 5eb677b

Browse files
committed
'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.
1 parent e0165ea commit 5eb677b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

highlighters/main/test-data/multiple-redirections.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# vim: ft=zsh sw=2 ts=2 et
2828
# -------------------------------------------------------------------------------------------------
2929

30-
BUFFER='ps aux | grep java | sort | uniq | tail | head'
30+
BUFFER='id bob | grep java | sort | uniq | tail | head'
3131

3232
expected_region_highlight=(
3333
"1 2 command" # ps

highlighters/main/test-data/simple-redirection.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# vim: ft=zsh sw=2 ts=2 et
2828
# -------------------------------------------------------------------------------------------------
2929

30-
BUFFER='ps aux | grep java'
30+
BUFFER='id bob | grep java'
3131

3232
expected_region_highlight=(
3333
"1 2 command" # ps

0 commit comments

Comments
 (0)