repo.or.cz
/
samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ctdb-tests: Add some tool unit tests to ensure that timeouts work
[samba.git]
/
ctdb
/
tests
/
UNIT
/
tool
/
ctdb.getpid.010.sh
blob
6e220a2f8d7819c8e38be217d4d7911e93a57099
1
#!/bin/sh
2
3
.
"
${TEST_SCRIPTS_DIR}
/unit.sh"
4
5
define_test
"3 nodes, all ok, GET_PID control times out"
6
7
setup_lvs
<<EOF
8
EOF
9
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
15
16
CONTROLFAILS
17
30 0 TIMEOUT # Make "ctdb getpid" time out
18
EOF
19
20
#####
21
22
required_result
1
<<EOF
23
Maximum runtime exceeded - exiting
24
EOF
25
simple_test
-T
3