From a5f7ba333bf4bb7390d02ea6238e7bd5e8125d9d Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Thu, 30 Jan 2025 13:47:07 +0000
Subject: [PATCH] tests: Add some missing coverage

We never explicitly tested the case where _srt_string_ends_with() is
looking for a suffix longer than the string itself.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 tests/utils.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/utils.c b/tests/utils.c
index a70beed33..270daf4fc 100644
--- a/tests/utils.c
+++ b/tests/utils.c
@@ -1578,6 +1578,7 @@ static const struct
 {
   { "", 0, "", TRUE },
   { "bar", -1, "bar", TRUE },
+  { "bar", -1, "bard", FALSE },
   { "foobar", -1, "bar", TRUE },
   { "foobar", -1, "BAR", FALSE },
   { "foo\0bar", 7, "ar", TRUE },
-- 
GitLab