summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorCraig Small <csmall@dropbear.xyz>2022-12-19 16:50:12 +1100
committerCraig Small <csmall@dropbear.xyz>2022-12-19 16:50:12 +1100
commitdd3cb0892d142e370413e1cba582d390042883e5 (patch)
tree804adaabcd74be6ed55d44a1561c03884b2a11b8 /testsuite
parentab978d62ae4154fa7b6e6904d00160751788c9b6 (diff)
downloadprocps-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.exp6
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