tests: convert unit test 1396 and 1398 into libtests

They were previously unit tests but used only public library functions.

Closes #22471
This commit is contained in:
Daniel Stenberg 2026-08-03 13:31:33 +02:00
parent b3cd319655
commit a2b178d378
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 11 additions and 12 deletions

View file

@ -2,7 +2,6 @@
<testcase>
<info>
<keywords>
unittest
curl_easy_escape
curl_easy_unescape
</keywords>
@ -10,9 +9,9 @@ curl_easy_unescape
# Client-side
<client>
<features>
unittest
</features>
<tool>
lib%TESTNUMBER
</tool>
<name>
curl_easy_escape and curl_easy_unescape
</name>

View file

@ -2,18 +2,17 @@
<testcase>
<info>
<keywords>
unittest
curl_msnprintf
</keywords>
</info>
# Client-side
<client>
<features>
unittest
</features>
<tool>
lib%TESTNUMBER
</tool>
<name>
curl_msnprintf unit tests
curl_msnprintf tests
</name>
</client>

View file

@ -89,6 +89,7 @@ TESTS_C = \
lib766.c \
lib1156.c \
lib1301.c lib1308.c \
lib1396.c lib1398.c \
lib1485.c \
lib1500.c lib1501.c lib1502.c lib1506.c \
lib1507.c lib1508.c lib1509.c lib1510.c lib1511.c lib1512.c lib1513.c \

View file

@ -37,7 +37,7 @@ static void t1396_stop(CURL *easy)
curl_global_cleanup();
}
static CURLcode test_unit1396(const char *arg)
static CURLcode test_lib1396(const char *arg)
{
CURL *easy;

View file

@ -28,7 +28,7 @@
#pragma GCC diagnostic ignored "-Wformat"
#endif
static CURLcode test_unit1398(const char *arg)
static CURLcode test_lib1398(const char *arg)
{
UNITTEST_BEGIN_SIMPLE

View file

@ -33,7 +33,7 @@ TESTS_C = \
unit1300.c unit1302.c unit1303.c unit1304.c unit1305.c \
unit1307.c unit1309.c \
unit1323.c unit1330.c \
unit1395.c unit1396.c unit1397.c unit1398.c unit1399.c \
unit1395.c unit1397.c unit1399.c \
unit1600.c unit1601.c unit1602.c unit1603.c unit1605.c unit1606.c \
unit1607.c unit1608.c unit1609.c unit1610.c unit1611.c unit1612.c unit1614.c \
unit1615.c unit1616.c unit1620.c \