summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/eventd/eventd_024.sh
blob: db68d01977913845f7d45417596bde8b9bcd67e8 (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
29
30
31
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "process terminated after debug"

setup_eventd

result_filter()
{
	_pid="[0-9][0-9]*"
	sed -e "s|${_pid}|PID|"
}

required_error ETIMEDOUT <<EOF
Event timeout in random timed out
EOF
simple_test run 5 random timeout

# wait for debug hung script
sleep 5

ok <<EOF
args: PID timeout
EOF
unit_test cat "${CTDB_BASE}/debug_script.log"

pid=$(cat "${CTDB_BASE}/debug_script.log" | awk '{print $2}')

ok_null
unit_test pstree "$pid"