Skip to content

test2501, test2502: add missing nghttpx-h3 feature - #23559

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:t-h3-req
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:t-h3-req

Conversation

@vszakats

@vszakats vszakats commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

To make these tests excluded early if nghttpx is not present, or does
not support HTTP/3 (while testing curl with HTTP/3 built-in). Before
this patch, the tests were run, failed to start, adding log noise.

Silencing:

Warning: http3-server.pl unknown parameter: ''

Warning: http3-server.pl unknown parameter: ''
[...]
RUN: failed to start the HTTP/3 server
test 2501 SKIPPED: failed starting HTTP/3 server
[...]
RUN: failed to start the HTTP/3 server
test 2502 SKIPPED: failed starting HTTP/3 server

https://github.com/curl/curl/actions/runs/39625191772/job/119308529929#step:16:3862
(msvc, CM x64-windows openssl +examples)

Follow-up to 71b7e01 #10141
Cherry-picked from #23543

To make these tests excluded early if nghttps is not present, or does
not support HTTP/3. Before this patch, the tests were run, but failed
to start, adding log noise.

Silencing:
```
Warning: http3-server.pl unknown parameter: ''

Warning: http3-server.pl unknown parameter: ''
[...]
RUN: failed to start the HTTP/3 server
test 2501 SKIPPED: failed starting HTTP/3 server
[...]
RUN: failed to start the HTTP/3 server
test 2502 SKIPPED: failed starting HTTP/3 server
```
https://github.com/curl/curl/actions/runs/39625191772/job/119308529929#step:16:3862
(msvc, CM x64-windows openssl +examples)

Follow-up to 71b7e01 curl#10141
Cherry-picked from curl#23543
@github-actions github-actions Bot added the tests label Oct 22, 2026
@vszakats vszakats added tidy-up HTTP/3 h3 or quic related labels Oct 22, 2026
@vszakats vszakats closed this in 2597df9 Oct 22, 2026
@vszakats
vszakats deleted the t-h3-req branch October 22, 2026 13:00
vszakats added a commit that referenced this pull request Oct 22, 2026
- warn and bail out early if `NGHTTPX` env is empty when launching H2/H3
  test servers. It can happen if a test requests these via its `server`
  section, yet missing the corresponding `features` keyword.
  Follow-up to 2597df9 #23559

- log a warning with details when the PID file is missing while trying
  to delete it. Replacing the Perl warning seen before this patch:
  ```
  Use of uninitialized value $pidfile in -f at D:/a/curl/curl/tests/servers.pm line 472.
  ```
  Ref: https://github.com/curl/curl/actions/runs/39695904768/job/119553125031?pr=23543#step:16:4394

- always quote the port argument. To avoid wrong command-line in
  the unlikely event of IO::Socket->sockport() returning an undef value.
  Ref: https://metacpan.org/release/TODDR/IO-1.55/source/lib/IO/Socket/INET.pm#L277

- drop `$aflags` interim variables.

Closes #23543
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HTTP/3 h3 or quic related tests tidy-up

Development

Successfully merging this pull request may close these issues.

1 participant