mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
330a106aaa
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
27 lines
373 B
Bash
Executable File
27 lines
373 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "debug script"
|
|
|
|
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"
|