mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
ctdb: Introduce output before and after the 10-second timeout
This will lead to a crash in run_event_test.c soon Bug: https://bugzilla.samba.org/show_bug.cgi?id=14475 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit f320d1a7ab0f81eefdb28b36bfe346eacb8980de)
This commit is contained in:
parent
95966b17f2
commit
477da04a55
@ -113,7 +113,9 @@ unit_test run_event_test "$scriptdir" run 10 monitor
|
|||||||
cat > "$scriptdir/22.bar.script" <<EOF
|
cat > "$scriptdir/22.bar.script" <<EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo before sleep
|
||||||
sleep 10
|
sleep 10
|
||||||
|
echo after sleep
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Timed out script
|
# Timed out script
|
||||||
@ -124,6 +126,7 @@ unit_test run_event_test "$scriptdir" enable 22.bar
|
|||||||
|
|
||||||
ok <<EOF
|
ok <<EOF
|
||||||
11.foo: hello
|
11.foo: hello
|
||||||
|
22.bar: before sleep
|
||||||
Event monitor completed with result=-$(errcode ETIMEDOUT)
|
Event monitor completed with result=-$(errcode ETIMEDOUT)
|
||||||
11.foo result=0
|
11.foo result=0
|
||||||
22.bar result=-$(errcode ETIMEDOUT)
|
22.bar result=-$(errcode ETIMEDOUT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user