blob: 8572c25ff15a4b3c8ef06c3fee5824dc43c9c0ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/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
|