HomeFreeBSD

rc/tests: Fix process flags checks using ps(1)

Description

rc/tests: Fix process flags checks using ps(1)

These checks use ps(1) with both the '-p' and '-a' flags, which worked
so far as ps(1)'s '-a' option was buggy. Since the fix in commit
"ps(1): Make '-a' and '-A' always show all processes"
(93a94ce731a89b56), such a command-line always selects all processes,
making the specified '-p' useless and the test wrong. Remove the
useless '-a'.

While here, remove the redundant '-x', as '-p' implies '-x' by default.

MFC after: 1 day
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50201

(cherry picked from commit 646375408742dd5ed9abb174a621a3f8f65a56ef)
(cherry picked from commit a69fe62604021f120206e4064ca7463195aeb3a0)

Approved by: re (cperciva)

Details

Provenance
olceAuthored on May 6 2025, 1:52 PM
Differential Revision
D50201: rc/tests: Fix process flags checks using ps(1)
Parents
rGd5fff1aad54c: ps.1: Remove ambiguity in description of option '-J'
Branches
Unknown
Tags
Unknown