]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: remove stray leading spaces in converteers_ref_cnt_never_dec.vtc
authorWilly Tarreau <w@1wt.eu>
Wed, 19 Aug 2020 09:20:28 +0000 (11:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 19 Aug 2020 09:20:28 +0000 (11:20 +0200)
Since commit f92afb732 ("MEDIUM: cfgparse: Emit hard error on truncated lines")
we now produce parsing errors on truncated lines, in an effort to clean
up dangerous or broken config files. And it turns out that one of our own
regression tests was suffering from this, as diagnosed by William and Tim.
The cause is the leading spaces in front of "} -start" that vtest makes
part of the output file, so the file finishes with a partial line made
of spaces.

reg-tests/stick-table/converteers_ref_cnt_never_dec.vtc

index d4fb8620d41240851bc99415f01f85af2f851530..9af7a544f95154124da10fcd17e6d92105afccab 100644 (file)
@@ -59,7 +59,7 @@ haproxy h1 -conf {
         http-request redirect location https://${s1_addr}:${s1_port}/ if { req.hdr(X-Forwarded-For),table_sess_cnt(http1) -m int lt 0  }
         http-request redirect location https://${s1_addr}:${s1_port}/ if { req.hdr(X-Forwarded-For),table_sess_rate(http1) -m int lt 0  }
         http-request redirect location https://${s1_addr}:${s1_port}/ if { req.hdr(X-Forwarded-For),table_trackers(http1) -m int lt 0  }
-    } -start
+} -start
 
 client c1 -connect ${h1_my_frontend_fd_sock} {
     txreq -url "/" -hdr "X-Forwarded-For: 127.0.0.1"