test1179 664 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <testcase>
  2. <info>
  3. <keywords>
  4. cmdline
  5. wrong option
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. </reply>
  12. #
  13. # Client-side
  14. <client>
  15. <server>
  16. none
  17. </server>
  18. # make this test require manual as the error message is different without it
  19. <features>
  20. manual
  21. </features>
  22. <name>
  23. error when using unknown command line option
  24. </name>
  25. <command>
  26. --never-implemented http://never.use.this.example.com/%TESTNUMBER
  27. </command>
  28. </client>
  29. #
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. <errorcode>
  33. 2
  34. </errorcode>
  35. <stderr mode="text">
  36. curl: option --never-implemented: is unknown
  37. curl: try 'curl --help' or 'curl --manual' for more information
  38. </stderr>
  39. </verify>
  40. </testcase>