mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-09 17:23:08 +02:00
GVariant tests: test with larger strings
Allocate some larger strings in the testcase to make sure we handle them correctly as well.
This commit is contained in:
parent
5aba9ca837
commit
296c710c64
@ -1885,7 +1885,7 @@ struct _TreeInstance
|
|||||||
union {
|
union {
|
||||||
guint64 integer;
|
guint64 integer;
|
||||||
gdouble floating;
|
gdouble floating;
|
||||||
gchar string[32];
|
gchar string[200];
|
||||||
} data;
|
} data;
|
||||||
gsize data_size;
|
gsize data_size;
|
||||||
};
|
};
|
||||||
@ -2004,7 +2004,7 @@ tree_instance_new (const GVariantType *type,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 's': case 'o': case 'g':
|
case 's': case 'o': case 'g':
|
||||||
instance->data_size = g_test_rand_int_range (10, 20);
|
instance->data_size = g_test_rand_int_range (10, 200);
|
||||||
make_random_string (instance->data.string, instance->data_size, type);
|
make_random_string (instance->data.string, instance->data_size, type);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user