ldb: Release ldb 1.3.0
[Samba.git] / ctdb / tests / eventscripts / 01.reclock.monitor.005.sh
blob8572c25ff15a4b3c8ef06c3fee5824dc43c9c0ab
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "set, doesn't exist, 4 times"
7 setup_reclock
8 rm -f "$CTDB_RECOVERY_LOCK"
10 ok_null
11 for i in $(seq 1 3) ; do
12 simple_test
13 done
15 for i in $(seq 4 199) ; do
16 required_result 1 <<EOF
17 ERROR: ${i} consecutive failures checking reclock
18 EOF
19 simple_test
20 done
22 required_result 1 <<EOF
23 Reclock file "${CTDB_RECOVERY_LOCK}" can not be accessed. Shutting down.
24 Filesystem 1024-blocks Used Available Capacity Mounted on
25 /dev/sda1 1000000 100000 900000 10% /
26 CTDB says BYE!
27 EOF
28 simple_test