Page MenuHomeFreeBSD

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

Authored by olce on May 6 2025, 4:59 PM.
Tags
None
Referenced Files
F153675394: D50201.id.diff
Wed, Apr 22, 8:35 PM
Unknown Object (File)
Tue, Apr 21, 11:41 AM
Unknown Object (File)
Tue, Apr 21, 1:10 AM
Unknown Object (File)
Mon, Apr 20, 10:23 PM
Unknown Object (File)
Sat, Apr 18, 1:09 PM
Unknown Object (File)
Sat, Apr 4, 5:31 PM
Unknown Object (File)
Wed, Apr 1, 7:28 PM
Unknown Object (File)
Mar 19 2026, 4:06 PM
Subscribers

Details

Summary

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 '-p'.

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable