From: Craig Small Date: Tue, 22 Mar 2022 09:20:53 +0000 (+1100) Subject: testsuite: ps out tests more lenient X-Git-Tag: v4.0.0~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b98e5657ee1f85474fcd9a690e0bbc0c86279cda;p=procps-ng testsuite: ps out tests more lenient Sometimes due to race conditions or the way dejagnu gates the output, or even there is another interesting process, the ps tests sometimes fail. These changes make it a little more lenient without losing the purpose of the test. Replaces Debian patch ps_tests References: https://salsa.debian.org/debian/procps/-/blob/debian/2%253.3.17-7/debian/patches/ps_checks --- diff --git a/testsuite/ps.test/ps_output.exp b/testsuite/ps.test/ps_output.exp index fef45563..99fa8d4d 100644 --- a/testsuite/ps.test/ps_output.exp +++ b/testsuite/ps.test/ps_output.exp @@ -22,8 +22,8 @@ set ps_time "\(\d+-\)?\\\d{1,3}:\\d{2}\\s*" set ps_class "\[A-Z?-\]\\s*" set flag_match { - "%cpu,pcpu,%mem,pmem" "%CPU\\s+%CPU\\s+%MEM\\s+%MEM\\s+\(\\d+\.\\d+\\s*\){4}$" - "blocked,sig_block,sigmask,caught,sigcatch,sig_catch" "\(BLOCKED\\s+\){3}\(CAUGHT\\s+\){2}CATCHED\\s+\(