Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/test_compat_posix.bats
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ _stub_ps_printing() {
esac

# The real ps hands us a path with a space -- the premise of the stub above.
[[ "$raw" == *"Application Support"* ]]
# grep, not `[[ ]]`: a non-last `[[ ]]` cannot fail a test on bash 3.2 (#670),
# and a premise that cannot fail is worse than no premise -- the assertions
# below would still run, against a `raw` that never had the shape they are
# about.
grep -qF -- 'Application Support' <<<"$raw"

run compat_get_comm "$_PROC_PID"
[ "$status" -eq 0 ]
Expand Down
Loading