Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
'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.
- Loading branch information
5eb677b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incidentally, it occurs to me that test cases that are valid syntactically but meaningless semantically might be a good idea in general: they're basically a z-sy-h analogue of lorem ipsum.
Tests that are valid semantically have their place as well, of course… but so do
if foo; bar; then
andif if foo ; then bar ; else baz ; fi; then
, notwithstanding how unreadable one might consider them.