varnishtest	"trivial run of varnishtop in curses mode"

server s1 {
	rxreq
	txresp -hdr "Connection: close"
} -start

varnish v1 -vcl+backend {} -start

process p1 -dump {varnishtop -n ${v1_name}} -start
process p2 -dump {varnishtop -n ${v1_name}} -start
process p3 -dump {varnishtop -n ${v1_name}} -start

process p1 -expect-text 1 1 {list length}

delay 1

client c1 {
	txreq
	rxresp
} -run

varnish v1 -vsl_catchup

process p1 -expect-text 1 1 {list length 7}

process p1 -writehex 0c

process p1 -need-bytes +1

process p1 -writehex 0b

process p1 -need-bytes +1

process p1 -winsz 30 80

process p1 -need-bytes +1

process p1 -screen_dump -write {q} -wait
process p2 -screen_dump -kill TERM -wait
process p3 -screen_dump -kill HUP -wait
