From e1be2ecba485e49c740286b7bc431592507aa8f0 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Tue, 11 Dec 2018 15:02:24 +0100 Subject: tests: add urlapi unittest This adds a new unittest intended to cover the internal functions in the urlapi code, starting with parse_port(). In order to avoid name collisions in debug builds, parse_port() is renamed Curl_parse_port() since it will be exported. Reviewed-by: Daniel Stenberg Reviewed-by: Marcel Raad --- tests/data/Makefile.inc | 2 +- tests/data/test1653 | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1653 (limited to 'tests/data') diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 7adebd3f9..5c202a3fe 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -184,7 +184,7 @@ test1590 \ test1600 test1601 test1602 test1603 test1604 test1605 test1606 test1607 \ test1608 test1609 test1620 \ \ -test1650 test1651 test1652 \ +test1650 test1651 test1652 test1653 \ \ test1700 test1701 test1702 \ \ diff --git a/tests/data/test1653 b/tests/data/test1653 new file mode 100644 index 000000000..0de2c14b5 --- /dev/null +++ b/tests/data/test1653 @@ -0,0 +1,23 @@ + + + +unittest +urlapi + + + + + +none + + +unittest + + +urlapi + + +unit1653 + + + -- cgit v1.2.3