From 90a4aee4741ff4eb5ec13868355e406fc2840bfa Mon Sep 17 00:00:00 2001 From: Craig Small Date: Fri, 2 Mar 2018 22:07:46 +1100 Subject: [PATCH] ps: Add NEWS and checks for times and cputimes The previous commit had one minor bug in it because the fields need to be alphabetical and times comes after timeout. Added NEWS item for this feature Added another testsuite check for new flags in case they disappear or go strange one day. References: commit 8a94ed61119f8dcf7bcb98b84534e408d4eb7769 --- NEWS | 1 + testsuite/ps.test/ps_output.exp | 1 + 2 files changed, 2 insertions(+) diff --git a/NEWS b/NEWS index cbbcb3b1..0d9910ce 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,7 @@ procps-ng-NEXT * ps: avoid eip/esp address truncations Debian #846361 * ps: recognizes SCHED_DEADLINE as valid CPU scheduler * ps: display NUMA node under which a thread ran issue #58 + * ps: Add seconds display for cputime and time merge #43 * sysctl: Permit empty string for value issue #74 * sysctl: Don't segv when file not available issue #76 * sysctl: Read and write large buffers merge #56 diff --git a/testsuite/ps.test/ps_output.exp b/testsuite/ps.test/ps_output.exp index cadce131..b290e28d 100644 --- a/testsuite/ps.test/ps_output.exp +++ b/testsuite/ps.test/ps_output.exp @@ -27,6 +27,7 @@ set flag_match { "bsdstart,start,lstart" "\\s*START\\s+STARTED\\s+STARTED\\s+\(\\s*\(\[A-Z\]\[a-z\]{2} \\d+|\\d+:\\d{2}\)\\s+\(\[A-Z\]\[a-z\]{2} \\d+|\\d+:\\d{2}:\\d{2}\)\\s+\[A-Z\]\[a-z\]{2} \[A-Z\]\[a-z\]{2}\\s+\\d+ \\d{2}:\\d{2}:\\d{2} \\d{4}\\s*\)+$" "bsdtime,cputime,etime,etimes" "\\s*TIME\\s+TIME\\s+ELAPSED\\s+ELAPSED\\s*\(\\s*\\d+:\\d{2}\\s+\\d{2}:\\d{2}:\\d{2}\\s+\(\\d{2}:\)?\\d{2}:\\d{2}\\s+\\d+\\s*\)$" "user,ruser,group,rgroup,uid,ruid,gid,rgid" "\\s*USER\\s+RUSER\\s+GROUP\\s+RGROUP\\s+UID\\s+RUID\\s+GID\\s+RGID\\s+\(\(\\s*\[A-Za-z0-9_+-\]+\\s+\){4}\(\\d+\\s+\){4}\\s*\)+$" + "cputimes,times" "\\s*TIME\\s+TIME\\s+\\d+\\s+\\d+\\s*" } foreach { flag match } $flag_match {