summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/00.ctdb.monitor.003.sh
blob: 9e63ab50fd3980e04db0442bbc500b6cff45a5e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "Memory check, bad situation, only swap check"

setup_memcheck "bad"

CTDB_MONITOR_FREE_MEMORY=""
CTDB_MONITOR_FREE_MEMORY_WARN=""
CTDB_CHECK_SWAP_IS_NOT_USED="yes"

ok <<EOF
We are swapping:
$FAKE_PROC_MEMINFO
$(ps foobar)
EOF

simple_test