mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-29 20:34:11 +02:00
Enable the endianness test.
2005-08-08 Matthias Clasen <mclasen@redhat.com> * tests/convert-test.c: Enable the endianness test. * glib/gconvert.c: Make the caching of iconv descriptors optional. * configure.in: Add an --enable-iconv-cache option, and default to disabling iconv caching on new enough glibc. Somebody with access to Solaris systems will need to test if opening/closing of iconv descriptors is enough of a performance problem to warrant the caching on that platform. Note that the caching is causing correctness problems in some corner cases, thus turning it off is desirable unless it has severe performance implications.
This commit is contained in:
committed by
Matthias Clasen
parent
81b6a73938
commit
717f3d4abb
@@ -106,7 +106,6 @@ test_byte_order (void)
|
||||
gsize bytes_read = 0;
|
||||
gsize bytes_written = 0;
|
||||
GError *error = NULL;
|
||||
int i;
|
||||
|
||||
out = g_convert (in_be, sizeof (in_be),
|
||||
"UTF-8", "UTF-16",
|
||||
@@ -125,7 +124,7 @@ test_byte_order (void)
|
||||
&error);
|
||||
|
||||
g_assert (error == NULL);
|
||||
g_assert (bytes_read == 2);
|
||||
g_assert (bytes_read == 4);
|
||||
g_assert (bytes_written == 2);
|
||||
g_assert (strcmp (out, expected) == 0);
|
||||
g_free (out);
|
||||
@@ -136,13 +135,7 @@ main (int argc, char *argv[])
|
||||
{
|
||||
test_iconv_state ();
|
||||
test_one_half ();
|
||||
|
||||
#if 0
|
||||
/* this one currently fails due to
|
||||
* https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=165368
|
||||
*/
|
||||
test_byte_order ();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user