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
Unknown Object (File)
Mon, Dec 1, 9:27 AM
Unknown Object (File)
Thu, Nov 27, 9:29 PM
Unknown Object (File)
Thu, Nov 27, 1:23 PM
Unknown Object (File)
Mon, Nov 24, 6:55 AM
Unknown Object (File)
Mon, Nov 24, 6:36 AM
Unknown Object (File)
Sat, Nov 22, 10:25 AM
Unknown Object (File)
Tue, Nov 18, 12:04 PM
Unknown Object (File)
Sat, Nov 15, 11:46 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 63950
Build 60834: arc lint + arc unit