curl/tests/data/test2410
Daniel Stenberg 287b082c63
tool_urlglob: better 'Duplicate glob name' position
This now points to where the duplicate name ends, not where it starts.

Also fixes test 2410 to use a fixed hostname so that the error position
remains the same.

Reported-by: Viktor Szakats
Fixes #21567
Closes #21568
2026-05-12 23:46:04 +02:00

34 lines
594 B
XML

<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
HTTP
HTTP GET
globbing
{} list
</keywords>
</info>
# Server-side
# Client-side
<client>
<name>
duplicate named glob
</name>
<command option="no-output">
"https://dummy.example/{%LTtest%GTA,B}{%LTtest%GTC,D}" -o "%LOGDIR/dump"
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<stderr mode="text">
curl: (3) Duplicate glob name in position 40:
https://dummy.example/{%LTtest%GTA,B}{%LTtest%GTC,D}
^
</stderr>
<errorcode>
3
</errorcode>
</verify>
</testcase>