]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
t/httpd-corner: fix test on missing curl-config(1)
authorEric Wong <e@80x24.org>
Fri, 12 Sep 2025 21:28:49 +0000 (21:28 +0000)
committerEric Wong <e@80x24.org>
Sat, 13 Sep 2025 19:26:21 +0000 (19:26 +0000)
commit8a0765262c5bde9b8343b14e7c7fdbf8cf8c94fe
treeca1ab323609817e343be47e935abfa06dd7f90c3
parent9011547f607e20aae22d84b710e4b83088a35223
t/httpd-corner: fix test on missing curl-config(1)

We were misusing our internal context-dependent `require_cmd',
which requires the caller to call `skip' explicitly when a
return value is desired.  So add a new `skip' call for testers
without curl-config(1).  Furthermore, the `SKIP' label was
incorrectly placed for Test::More::skip to use, so create an
explicit block for it.

Reported-by: Jonathan Corbet <corbet@lwn.net>
Link: https://public-inbox.org/meta/878qikobes.fsf@trenco.lwn.net/
t/httpd-corner.t