[master] 5362e7295 test that varnish{top, stat, hist} properly handle signals

Nils Goroll nils.goroll at uplex.de
Fri Oct 11 10:27:07 UTC 2019


commit 5362e7295d191107dbbcee8dfc333b49670e7cd8
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Fri Oct 11 12:21:03 2019 +0200

    test that varnish{top,stat,hist} properly handle signals
    
    Tests #3088

diff --git a/bin/varnishtest/tests/u00008.vtc b/bin/varnishtest/tests/u00008.vtc
index 9953fccad..86503c972 100644
--- a/bin/varnishtest/tests/u00008.vtc
+++ b/bin/varnishtest/tests/u00008.vtc
@@ -12,6 +12,8 @@ varnish v1 -vcl+backend {
 } -start
 
 process p1 -dump {varnishstat -n ${v1_name}} -start
+process p2 -dump {varnishstat -n ${v1_name}} -start
+process p3 -dump {varnishstat -n ${v1_name}} -start
 
 process p1 -expect-text 0 0 "VBE.vcl1.s1.happy"
 process p1 -screen_dump
@@ -46,4 +48,5 @@ process p1 -expect-text 4 124 "AVG_1000"
 process p1 -expect-text 22 108 "UNSEEN  DIAG"
 
 process p1 -screen_dump -write {q} -wait
-
+process p2 -screen_dump -kill TERM -wait
+process p3 -screen_dump -kill HUP -wait
diff --git a/bin/varnishtest/tests/u00009.vtc b/bin/varnishtest/tests/u00009.vtc
index 3f62e34ab..07743d128 100644
--- a/bin/varnishtest/tests/u00009.vtc
+++ b/bin/varnishtest/tests/u00009.vtc
@@ -52,4 +52,4 @@ process p1 -writehex 0c -need-bytes +10
 
 process p1 -screen_dump -write {q} -wait
 process p2 -screen_dump -kill HUP -wait
-process p3 -screen_dump -write {q} -wait
+process p3 -screen_dump -kill TERM -wait
diff --git a/bin/varnishtest/tests/u00010.vtc b/bin/varnishtest/tests/u00010.vtc
index 9b92f0774..b4f255191 100644
--- a/bin/varnishtest/tests/u00010.vtc
+++ b/bin/varnishtest/tests/u00010.vtc
@@ -8,6 +8,8 @@ server s1 {
 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}
 
@@ -35,3 +37,5 @@ 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 {q} -wait


More information about the varnish-commit mailing list