mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 20:06:18 +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
4cd1a1c03d
commit
82d162da83
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user