diff options
author | Craig Small <csmall@dropbear.xyz> | 2022-12-19 16:50:12 +1100 |
---|---|---|
committer | Craig Small <csmall@dropbear.xyz> | 2022-12-19 16:50:12 +1100 |
commit | dd3cb0892d142e370413e1cba582d390042883e5 (patch) | |
tree | 804adaabcd74be6ed55d44a1561c03884b2a11b8 /testsuite | |
parent | ab978d62ae4154fa7b6e6904d00160751788c9b6 (diff) | |
download | procps-ng-dd3cb0892d142e370413e1cba582d390042883e5.tar.gz |
ps: Correct BSD c option
procps 3.3.17 the c option changed the command/args field
to cmd but this got removed as part of newlib
Functionality is back in with a test case.
References:
https://bugs.debian.org/1026326
Signed-off-by: Craig Small <csmall@dropbear.xyz>
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/ps.test/ps_output.exp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/ps.test/ps_output.exp b/testsuite/ps.test/ps_output.exp index 998490e..b0f789e 100644 --- a/testsuite/ps.test/ps_output.exp +++ b/testsuite/ps.test/ps_output.exp @@ -51,3 +51,9 @@ expect_pass "$test" "error: missing AIX field descriptor" set test "ps with unknown AIX field" spawn $ps -o "%p %Z" expect_pass "$test" "error: unknown AIX field descriptor" + +make_testproc +set test "ps with c option" +spawn $ps co command $testproc1_pid +expect_pass "$test" "^COMMAND\\s+spcorp\\s*$" +kill_testproc |