tests: Add missing return value check in string test

Coverity noticed that we were not testing the return value here. Good
Coverity!
This commit is contained in:
Michael Catanzaro 2021-05-11 16:24:39 -05:00
parent 4cd1a1c03d
commit 82d162da83

View File

@ -519,6 +519,7 @@ test_string_replace (void)
n = g_string_replace (s, "a", "abcdefghijkl", 0); n = g_string_replace (s, "a", "abcdefghijkl", 0);
g_assert_cmpstr ("abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl", g_assert_cmpstr ("abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl",
==, s->str); ==, s->str);
g_assert_cmpint (n, ==, 8);
g_string_free (s, TRUE); g_string_free (s, TRUE);
} }