Commit 1c4663bc authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

tests: verify the stricter numeric option parser

Test 1409 and 1410 verifies the stricter numeric option parser
introduced the other day in commit f2b6ebed.
parent d759a70d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ test1371 test1372 test1373 test1374 test1375 test1376 test1377 test1378 \
test1379 test1380 test1381 test1382 test1383 test1384 test1385 test1386 \
test1387 test1388 test1389 test1390 test1391 test1392 test1393 \
test1400 test1401 test1402 test1403 test1404 test1405 test1406 test1407 \
test1408 \
test1408 test1409 test1410 \
test2000 test2001 test2002 test2003 test2004 test2005 test2006 test2007 \
test2008 test2009 test2010 test2011 test2012 test2013 test2014 test2015 \
test2016 test2017 test2018 test2019 test2020 test2021 test2022

tests/data/test1409

0 → 100644
+30 −0
Original line number Diff line number Diff line
<testcase>
<info>
<keywords>
cmdline
</keywords>
</info>


#
# Client-side
<client>
<server>
none
</server>
 <name>
Pass in string to -C
 </name>
 <command>
http://%HOSTIP:%HTTPPORT/1409 -C wrong
</command>
</client>

#
# Verify data after the test has been "shot"
<verify>
<errorcode>
2
</errorcode>
</verify>
</testcase>

tests/data/test1410

0 → 100644
+30 −0
Original line number Diff line number Diff line
<testcase>
<info>
<keywords>
cmdline
</keywords>
</info>


#
# Client-side
<client>
<server>
none
</server>
 <name>
Pass in negative number to --max-time
 </name>
 <command>
http://%HOSTIP:%HTTPPORT/1410 --max-time -4
</command>
</client>

#
# Verify data after the test has been "shot"
<verify>
<errorcode>
2
</errorcode>
</verify>
</testcase>