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:
Matthias Clasen
2005-08-08 19:50:38 +00:00
committed by Matthias Clasen
parent 81b6a73938
commit 717f3d4abb
7 changed files with 128 additions and 8 deletions

View File

@@ -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;
}