]> Sergey Matveev's repositories - public-inbox.git/commit
t/httpd-corner: improve reliability and diagnostics
authorEric Wong <e@yhbt.net>
Thu, 16 Apr 2020 00:29:38 +0000 (00:29 +0000)
committerEric Wong <e@yhbt.net>
Thu, 16 Apr 2020 00:30:15 +0000 (00:30 +0000)
commitc7b4cbdadf3116a077dbd50e3b7850001598bdee
tree7263b0550351af8d15a35354e8aa9efa474708c2
parent6645b8d288752cc94324efeffe68ce8a704598a3
t/httpd-corner: improve reliability and diagnostics

The graceful-shutdown-on-PUT test is unreliable because we can't
rely on a FIFO as we do with the GET tests.  So increase the
delay to 100ms since that seems enough on my system even with
CONFIG_HZ=100.

Add a timeout and backtrace to the $check_self sub to help with
further diagnostics while we're at it, too.

It would be nice if there were a portable syscall tracing
mechanism we could attach to the -httpd process to make the test
more determistic...
t/httpd-corner.t