ctdb-tests: Add some tool unit tests to ensure that timeouts work
[samba.git] / ctdb / tests / UNIT / tool / ctdb.getpid.010.sh
blob6e220a2f8d7819c8e38be217d4d7911e93a57099
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "3 nodes, all ok, GET_PID control times out"
7 setup_lvs <<EOF
8 EOF
10 setup_ctdbd <<EOF
11 NODEMAP
12 0 192.168.20.41 0x0 CURRENT RECMASTER
13 1 192.168.20.42 0x0
14 2 192.168.20.43 0x0
16 CONTROLFAILS
17 30 0 TIMEOUT # Make "ctdb getpid" time out
18 EOF
20 #####
22 required_result 1 <<EOF
23 Maximum runtime exceeded - exiting
24 EOF
25 simple_test -T 3