projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5ac61a
)
GVariant tests: test with larger strings
author
Ryan Lortie
<desrt@desrt.ca>
Fri, 28 Nov 2014 22:55:28 +0000
(17:55 -0500)
committer
Maciej Wereski
<m.wereski@partner.samsung.com>
Fri, 10 Jul 2015 09:47:42 +0000
(11:47 +0200)
Allocate some larger strings in the testcase to make sure we handle them
correctly as well.
glib/tests/gvariant.c
patch
|
blob
|
history
diff --git
a/glib/tests/gvariant.c
b/glib/tests/gvariant.c
index
9152a43
..
e13aa82
100644
(file)
--- a/
glib/tests/gvariant.c
+++ b/
glib/tests/gvariant.c
@@
-1885,7
+1885,7
@@
struct _TreeInstance
union {
guint64 integer;
gdouble floating;
- gchar string[
32
];
+ gchar string[
200
];
} data;
gsize data_size;
};
@@
-2004,7
+2004,7
@@
tree_instance_new (const GVariantType *type,
break;
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, 20
0
);
make_random_string (instance->data.string, instance->data_size, type);
break;
}