testsuite🆓 total committed memory can be negative (if overcommitted)
E.g. on my system I see this output to "free -vh", which fails the test: total used free shared buff/cache available Mem: 23Gi 17Gi 311Mi 2.2Gi 8.1Gi 5.8Gi Swap: 2.0Gi 1.9Gi 105Mi Comm: 13Gi 44Gi -31Gi
This commit is contained in:
parent
95cd051c27
commit
414e33a8af
@ -41,7 +41,7 @@ expect_pass "$test" "^${free_header}Mem:\\s+${memtotal_kb}\\s+\\d+\\s+\\d+\\s+\\
|
|||||||
|
|
||||||
set test "free with commit"
|
set test "free with commit"
|
||||||
spawn $free -v
|
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*"
|
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"
|
set test "free with negative repeat count"
|
||||||
spawn $free -c -2
|
spawn $free -c -2
|
||||||
|
Loading…
Reference in New Issue
Block a user