curl-curl/tests/data/test1268
Viktor Szakats c6bd2e6a9a
tests: prefer --insecure over -k
To make it uniform in all tests, and greppability.

Also:
- replace `-k` flag with `-q` in test 1268. (the actual flag doesn't
  matter in this test)
- keep `-k` in test 300 to test its short form.
  (also verified to fail without a working `-k`)

Closes #16878
2025-04-03 23:18:55 +02:00

42 lines
578 B
Plaintext

<testcase>
<info>
<keywords>
warning
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<server>
none
</server>
<features>
UnixSockets
</features>
<name>
filename argument looks like a flag
</name>
<command>
--stderr %LOGDIR/moo%TESTNUMBER --unix-socket -q hej://moo
</command>
</client>
<verify>
<file name="%LOGDIR/moo%TESTNUMBER" mode="text">
Warning: The filename argument '-q' looks like a flag.
curl: (1) Protocol "hej" not supported
</file>
# we expect an error since we provide a weird URL
<errorcode>
1
</errorcode>
</verify>
</testcase>