[master] 49b407439 stabilize test: do not expect exact byte counts

Nils Goroll nils.goroll at uplex.de
Sat Apr 4 12:00:07 UTC 2020


commit 49b40743981e695a239c8a32934de19d930267bc
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Sat Apr 4 13:58:12 2020 +0200

    stabilize test: do not expect exact byte counts
    
    Across the platforms we support, the overhead of stevedore allocations
    varies slightly due to different sizes of our structs.

diff --git a/bin/varnishtest/tests/v00064.vtc b/bin/varnishtest/tests/v00064.vtc
index 8a608e38e..080029b4d 100644
--- a/bin/varnishtest/tests/v00064.vtc
+++ b/bin/varnishtest/tests/v00064.vtc
@@ -44,7 +44,7 @@ client c1 {
 delay .1
 
 varnish v1 -expect SM?.Transient.g_bytes > 1048000
-varnish v1 -expect SM?.Transient.g_space == 8
+varnish v1 -expect SM?.Transient.g_space < 50
 
 client c1 {
     # Fill malloc
@@ -56,7 +56,7 @@ client c1 {
 } -run
 
 varnish v1 -expect SM?.s0.g_bytes > 1048000
-varnish v1 -expect SM?.s0.g_space == 4
+varnish v1 -expect SM?.s0.g_space < 50
 
 client c1 {
     # Check that Varnish is still alive


More information about the varnish-commit mailing list