mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 00:48:53 +02:00
autocleanups: Add GString type
https://bugzilla.gnome.org/show_bug.cgi?id=754831
This commit is contained in:
@@ -276,6 +276,13 @@ test_g_slist (void)
|
||||
g_assert (nonempty_val != NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
test_g_string (void)
|
||||
{
|
||||
g_autoptr(GString) val = g_string_new ("");
|
||||
g_assert (val != NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
test_g_string_chunk (void)
|
||||
{
|
||||
@@ -428,6 +435,7 @@ main (int argc, gchar *argv[])
|
||||
g_test_add_func ("/autoptr/g_scanner", test_g_scanner);
|
||||
g_test_add_func ("/autoptr/g_sequence", test_g_sequence);
|
||||
g_test_add_func ("/autoptr/g_slist", test_g_slist);
|
||||
g_test_add_func ("/autoptr/g_string", test_g_string);
|
||||
g_test_add_func ("/autoptr/g_string_chunk", test_g_string_chunk);
|
||||
g_test_add_func ("/autoptr/g_thread", test_g_thread);
|
||||
g_test_add_func ("/autoptr/g_mutex", test_g_mutex);
|
||||
|
Reference in New Issue
Block a user