diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-07-12 00:32:23 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-07-12 00:32:23 +0200 |
commit | 1c4663bc42985fd8fbd959bd9516d5ef77dae612 (patch) | |
tree | 2f710a41b80866fe5ee631eb0264a532c3d84652 | |
parent | d759a70db88205dd0629d6de602b9b60ede24f2d (diff) |
tests: verify the stricter numeric option parser
Test 1409 and 1410 verifies the stricter numeric option parser
introduced the other day in commit f2b6ebed7b.
-rw-r--r-- | tests/data/Makefile.am | 2 | ||||
-rw-r--r-- | tests/data/test1409 | 30 | ||||
-rw-r--r-- | tests/data/test1410 | 30 |
3 files changed, 61 insertions, 1 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 1170a15db..372f127d8 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -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 diff --git a/tests/data/test1409 b/tests/data/test1409 new file mode 100644 index 000000000..180e03ad1 --- /dev/null +++ b/tests/data/test1409 @@ -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> diff --git a/tests/data/test1410 b/tests/data/test1410 new file mode 100644 index 000000000..bcc78a856 --- /dev/null +++ b/tests/data/test1410 @@ -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> |