mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
330a106aaa
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
23 lines
437 B
Bash
Executable File
23 lines
437 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "redirected status output in debug script"
|
|
|
|
setup_eventd
|
|
|
|
required_error ETIMEDOUT <<EOF
|
|
Event verbosetimeout2 in random timed out
|
|
EOF
|
|
simple_test run 5 random verbosetimeout2
|
|
|
|
# wait for debug hung script
|
|
sleep 5
|
|
|
|
ok <<EOF
|
|
01.disabled DISABLED
|
|
02.enabled TIMEDOUT DATETIME
|
|
OUTPUT: Sleeping for 99 seconds
|
|
EOF
|
|
unit_test cat "${CTDB_BASE}/debug_script.log"
|