[6.0] fa4b81b41 Test varnishhist a little bit more

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Oct 31 13:08:15 UTC 2018


commit fa4b81b41f1097d52acb2b8236678ec2b669e332
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Sep 6 21:50:04 2018 +0000

    Test varnishhist a little bit more

diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index 65f9246be..52bb69a6d 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -422,8 +422,8 @@ do_curses(void *arg)
 		case 'Q':
 		case 'q':
 			AZ(raise(SIGINT));
-			endwin();
-			return (NULL);
+			quit = 1;
+			break;
 		case '0':
 		case '1':
 		case '2':
diff --git a/bin/varnishtest/tests/u00009.vtc b/bin/varnishtest/tests/u00009.vtc
index bd6286e4f..8b962a63d 100644
--- a/bin/varnishtest/tests/u00009.vtc
+++ b/bin/varnishtest/tests/u00009.vtc
@@ -24,6 +24,13 @@ client c1 {
 
 process p1 -expect-text 22 0 {#}
 
+client c1 {
+	txreq
+	rxresp
+} -run
+
+process p1 -expect-text 22 0 { | }
+
 process p1 -expect-text 3 1 {20_}
 
 process p1 -screen_dump


More information about the varnish-commit mailing list