commit daf6991ef439e288eda56cfa810c630914b105a4
Author: Sergey Poznyakoff <gray@gnu.org>
Date:   Wed Apr 15 07:38:39 2026 +0300

    Fix in the testsuite.
    
    The lua-path test didn't wait for pound to start up and could shut
    it down prematurely.
    
    Bug reported by Santiago Vila <sanvila@debian.org>.
    
    * tests/lua-path.at: Add send-expect parts to ensure pound is fully
    set up.

diff --git a/tests/lua-path.at b/tests/lua-path.at
index 89d9116..67f62ee 100644
--- a/tests/lua-path.at
+++ b/tests/lua-path.at
@@ -32,7 +32,16 @@ ListenHTTP
 		End
 	End
 End
-])
+],
+[# The expect part here serves only to ensure that the startup has finished
+# and pound is fully set up. Whithout it, the SIGHUP sent by poundharness
+# could have arrived before signal handling is set up and thus cause an
+# abnormal termination.
+GET /echo/1
+end
+
+200
+end])
 
 AT_CHECK([sed -n -e '/^pound: PATH=/{' -e 's///p' -e 'q' -e '}' pound.log],
 [0],
@@ -52,7 +61,12 @@ ListenHTTP
 		End
 	End
 End
-])
+],
+[GET /echo/1
+end
+
+200
+end])
 
 AT_CHECK([sed -n -e '/^pound: PATH=/{' -e 's///' \
                  -e 's/^PATH_PREPEND_Q;//' \
