mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
... plus updates to test infrastructure to support. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 4a388fc6bf54636b7e1f6da8e6aa451cddd574f7)
18 lines
351 B
Bash
Executable File
18 lines
351 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "Memory check, bad situation, only memory warning"
|
|
|
|
setup_memcheck "bad"
|
|
|
|
CTDB_MONITOR_FREE_MEMORY=""
|
|
CTDB_MONITOR_FREE_MEMORY_WARN="500"
|
|
CTDB_CHECK_SWAP_IS_NOT_USED="no"
|
|
|
|
ok <<EOF
|
|
WARNING: free memory is low - 468MB free <= ${CTDB_MONITOR_FREE_MEMORY_WARN}MB (CTDB threshold)
|
|
EOF
|
|
|
|
simple_test
|