From d102a4d8b2407f6cc0a882b04f67768a8a06b54d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 14 Jan 2023 09:43:51 -0500 Subject: [PATCH] Improve the g_string_truncate test Test the inline version too. --- glib/tests/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/tests/string.c b/glib/tests/string.c index 62f4f5161..23f44015f 100644 --- a/glib/tests/string.c +++ b/glib/tests/string.c @@ -436,7 +436,7 @@ test_string_truncate (void) g_assert (string->len == strlen("testing")); g_assert_cmpstr (string->str, ==, "testing"); - g_string_truncate (string, 4); + (g_string_truncate) (string, 4); g_assert (string->len == 4); g_assert_cmpstr (string->str, ==, "test");