From a2b178d378c0e307bda0bd82028afbe546057f1a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 3 Aug 2026 13:31:33 +0200 Subject: [PATCH] tests: convert unit test 1396 and 1398 into libtests They were previously unit tests but used only public library functions. Closes #22471 --- tests/data/test1396 | 7 +++---- tests/data/test1398 | 9 ++++----- tests/libtest/Makefile.inc | 1 + tests/{unit/unit1396.c => libtest/lib1396.c} | 2 +- tests/{unit/unit1398.c => libtest/lib1398.c} | 2 +- tests/unit/Makefile.inc | 2 +- 6 files changed, 11 insertions(+), 12 deletions(-) rename tests/{unit/unit1396.c => libtest/lib1396.c} (98%) rename tests/{unit/unit1398.c => libtest/lib1398.c} (99%) diff --git a/tests/data/test1396 b/tests/data/test1396 index 3e45556336..88062c8298 100644 --- a/tests/data/test1396 +++ b/tests/data/test1396 @@ -2,7 +2,6 @@ -unittest curl_easy_escape curl_easy_unescape @@ -10,9 +9,9 @@ curl_easy_unescape # Client-side - -unittest - + +lib%TESTNUMBER + curl_easy_escape and curl_easy_unescape diff --git a/tests/data/test1398 b/tests/data/test1398 index 025c955562..dde51f6994 100644 --- a/tests/data/test1398 +++ b/tests/data/test1398 @@ -2,18 +2,17 @@ -unittest curl_msnprintf # Client-side - -unittest - + +lib%TESTNUMBER + -curl_msnprintf unit tests +curl_msnprintf tests diff --git a/tests/libtest/Makefile.inc b/tests/libtest/Makefile.inc index 89f6a82546..0787bfc911 100644 --- a/tests/libtest/Makefile.inc +++ b/tests/libtest/Makefile.inc @@ -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 \ diff --git a/tests/unit/unit1396.c b/tests/libtest/lib1396.c similarity index 98% rename from tests/unit/unit1396.c rename to tests/libtest/lib1396.c index 1dd3c17112..60d139a850 100644 --- a/tests/unit/unit1396.c +++ b/tests/libtest/lib1396.c @@ -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; diff --git a/tests/unit/unit1398.c b/tests/libtest/lib1398.c similarity index 99% rename from tests/unit/unit1398.c rename to tests/libtest/lib1398.c index 2147a4a283..6fd9cebb04 100644 --- a/tests/unit/unit1398.c +++ b/tests/libtest/lib1398.c @@ -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 diff --git a/tests/unit/Makefile.inc b/tests/unit/Makefile.inc index fd05c070e4..a2bfa273d8 100644 --- a/tests/unit/Makefile.inc +++ b/tests/unit/Makefile.inc @@ -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 \