tests: verify the stricter numeric option parser

Test 1409 and 1410 verifies the stricter numeric option parser
introduced the other day in commit f2b6ebed7b.
This commit is contained in:
Daniel Stenberg 2012-07-12 00:32:23 +02:00
parent d759a70db8
commit 1c4663bc42
3 changed files with 61 additions and 1 deletions

View File

@ -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

30
tests/data/test1409 Normal file
View File

@ -0,0 +1,30 @@
<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>

30
tests/data/test1410 Normal file
View File

@ -0,0 +1,30 @@
<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>