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 committed by Philip Withnall
parent 66a9196329
commit be84555c73

View File

@ -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);
}