From e75bbeb117d930840ab376105b15a1eee113a4dc Mon Sep 17 00:00:00 2001 From: Craig Small Date: Wed, 16 Jun 2021 20:34:33 +1000 Subject: [PATCH] testsuite: Add test for free committed Add a check for free -v for committed memory. References: commit 16734d580eb779654e626f3b41a98992fc0d557d --- testsuite/free.test/free.exp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testsuite/free.test/free.exp b/testsuite/free.test/free.exp index d019eb4c..332fa9d9 100644 --- a/testsuite/free.test/free.exp +++ b/testsuite/free.test/free.exp @@ -39,6 +39,10 @@ set test "free with total" spawn $free -t expect_pass "$test" "^${free_header}Mem:\\s+${memtotal_kb}\\s+\\d+\\s+\\d+\\s+\\d+\\s+\\d+\\s+\\d+\\s*Swap:\\s+${swaptotal_kb}\\s+\\d+\\s+\\d+\\s*Total:\\s+\\d+\\s+\\d+\\s+\\d+\\s*" +set test "free with commit" +spawn $free -v +expect_pass "$test" "^${free_header}Mem:\\s+${memtotal_kb}\\s+\\d+\\s+\\d+\\s+\\d+\\s+\\d+\\s+\\d+\\s*Swap:\\s+${swaptotal_kb}\\s+\\d+\\s+\\d+\\s*Comm:\\s+\\d+\\s+\\d+\\s+\\d+\\s*" + set test "free with negative repeat count" spawn $free -c -2 expect_pass "$test" "\(lt-\)\?free: failed to parse count argument: '-2': Numerical result out of range"