[master] 3fe065cd0 vtc_process: Mitigate screen refresh race
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Fri Apr 30 08:45:06 UTC 2021
commit 3fe065cd048d095ced7ba45bd42879f5adf470f5
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Fri Apr 30 10:41:19 2021 +0200
vtc_process: Mitigate screen refresh race
It's otherwise too tight for for varnishstat's default refresh rate,
possibly for varnishhist and varnishtop too.
diff --git a/bin/varnishtest/vtc_process.c b/bin/varnishtest/vtc_process.c
index bc243894b..7387dfa39 100644
--- a/bin/varnishtest/vtc_process.c
+++ b/bin/varnishtest/vtc_process.c
@@ -304,7 +304,7 @@ term_expect_text(struct process *pp,
if (y < 0 || y > pp->nlin)
vtc_fatal(pp->vl, "YYY %d nlin %d", y, pp->nlin);
x = strtoul(col, NULL, 0);
- for(l = 0; l < 10 && x > pp->ncol; l++) // wait for screen change
+ for(l = 0; l <= 10 && x > pp->ncol; l++) // wait for screen change
usleep(100000);
if (x < 0 || x > pp->ncol)
vtc_fatal(pp->vl, "XXX %d ncol %d", x, pp->ncol);
More information about the varnish-commit
mailing list