mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
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:
parent
66a9196329
commit
be84555c73
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user