Skip to contentSkip to conversation

lib-tests-string_helpers-decouple-unescape-and-escape-cases.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message May 29

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: lib/tests: string_helpers: decouple unescape and escape cases
has been removed from the -mm tree. Its filename was
lib-tests-string_helpers-decouple-unescape-and-escape-cases.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Andy Shevchenko <[email protected]>
Subject: lib/tests: string_helpers: decouple unescape and escape cases
Date: Mon, 6 Apr 2026 21:32:47 +0200

Patch series "lib/tests: string_helpers: Slight improvements".

Two ad-hoc patches to improve the test module. It was induced by another patch that poorly tried to add (existing) test cases and make me revisit string_helpers_kunit.c.

This patch (of 2):

Currently the escape and unescape test cases go in one step. Decouple them for the better granularity and understanding test coverage in the results.

---

 lib/tests/string_helpers_kunit.c |    6 ++++++
 1 file changed, 6 insertions(+)
lib/tests/string_helpers_kunit.c renamed from lib/tests/string_helpers_kunit.c~lib-tests-string_helpers-decouple-unescape-and-escape-cases +6 -0
@@ -601,6 +601,11 @@ static void test_unescape(struct kunit *
 		test_string_unescape(test, "unescape", i, false);
 	test_string_unescape(test, "unescape inplace",
 			     get_random_u32_below(UNESCAPE_ALL_MASK + 1), true);
+}
+
+static void test_escape(struct kunit *test)
+{
+	unsigned int i;
 
 	/* Without dictionary */
 	for (i = 0; i < ESCAPE_ALL_MASK + 1; i++)
@@ -615,6 +620,7 @@ static struct kunit_case string_helpers_
 	KUNIT_CASE(test_get_size),
 	KUNIT_CASE(test_upper_lower),
 	KUNIT_CASE(test_unescape),
+	KUNIT_CASE(test_escape),
 	{}
 };
 

_

Patches currently in -mm which might be from [email protected] are