From 82d162da8374c834cbb1c0cd80244b7905986327 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Tue, 11 May 2021 16:24:39 -0500 Subject: [PATCH] tests: Add missing return value check in string test Coverity noticed that we were not testing the return value here. Good Coverity! --- glib/tests/string.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glib/tests/string.c b/glib/tests/string.c index 819b192fb..6e22cd287 100644 --- a/glib/tests/string.c +++ b/glib/tests/string.c @@ -519,6 +519,7 @@ test_string_replace (void) n = g_string_replace (s, "a", "abcdefghijkl", 0); g_assert_cmpstr ("abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl", ==, s->str); + g_assert_cmpint (n, ==, 8); g_string_free (s, TRUE); }