mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
0825eff3e3
This makes the logic more obvious. Fix the (probably) accidental fall-through to the regular monitor failure. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
29 lines
594 B
Bash
Executable File
29 lines
594 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "set, doesn't exist, 4 times"
|
|
|
|
setup_reclock
|
|
rm -f "$CTDB_RECOVERY_LOCK"
|
|
|
|
ok_null
|
|
for i in $(seq 1 3) ; do
|
|
simple_test
|
|
done
|
|
|
|
for i in $(seq 4 199) ; do
|
|
required_result 1 <<EOF
|
|
ERROR: ${i} consecutive failures checking reclock
|
|
EOF
|
|
simple_test
|
|
done
|
|
|
|
required_result 1 <<EOF
|
|
Reclock file "${CTDB_RECOVERY_LOCK}" can not be accessed. Shutting down.
|
|
Filesystem 1024-blocks Used Available Capacity Mounted on
|
|
/dev/sda1 1000000 100000 900000 10% /
|
|
CTDB says BYE!
|
|
EOF
|
|
simple_test
|