]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: remove unexpected "nbthread" statement from Lua test cases
authorWilly Tarreau <w@1wt.eu>
Wed, 27 Mar 2019 12:50:33 +0000 (13:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 27 Mar 2019 13:15:33 +0000 (14:15 +0100)
Lua test files 2 and 3 fail when threads are disabled because of a
"nbthread" statement that seems to be a leftover from an ancient
configuration. One of them even mentions a commit message showing
a reproducer not involving threads. Let's clean this up so that
running the tests without threads also works.

This should be backported to 1.9 as the problem also exists there.

reg-tests/lua/b00002.vtc
reg-tests/lua/b00003.vtc

index 6ab58f6b14e38605649f7c6571b48799c0148c0f..e1fe7f33558b00465efbdf2fd751544c04e33c6d 100644 (file)
@@ -5,7 +5,6 @@ feature ignore_unknown_macro
 
 haproxy h1 -conf {
     global
-        nbthread 3
         lua-load ${testdir}/b00002.lua
         lua-load ${testdir}/b00002_print_r.lua
 
index 89ab499c835de714a70494017e8d4db3c8e7b4e6..75cdd7d8da69c1204bfe7f6d2fab11a7af9a8071 100644 (file)
@@ -30,7 +30,6 @@ haproxy h1 -conf {
 
     global
         lua-load ${testdir}/b00003.lua
-        nbthread 4
 
     frontend frt
         log ${Slog_addr}:${Slog_port} local0 debug err