mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Don't test items_read and items_written in error cases where it is not
2006-01-11 Matthias Clasen <mclasen@redhat.com> * tests/convert-test.c: Don't test items_read and items_written in error cases where it is not set.
This commit is contained in:
parent
e31bd40d43
commit
c93ebd50af
@ -1,5 +1,8 @@
|
||||
2006-01-11 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* tests/convert-test.c: Don't test items_read and
|
||||
items_written in error cases where it is not set.
|
||||
|
||||
* tests/asyncqueue-test.c: Set error to NULL.
|
||||
|
||||
2006-01-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
@ -1,5 +1,8 @@
|
||||
2006-01-11 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* tests/convert-test.c: Don't test items_read and
|
||||
items_written in error cases where it is not set.
|
||||
|
||||
* tests/asyncqueue-test.c: Set error to NULL.
|
||||
|
||||
2006-01-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
@ -1,5 +1,8 @@
|
||||
2006-01-11 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* tests/convert-test.c: Don't test items_read and
|
||||
items_written in error cases where it is not set.
|
||||
|
||||
* tests/asyncqueue-test.c: Set error to NULL.
|
||||
|
||||
2006-01-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
@ -164,8 +164,8 @@ check_utf8_to_ucs4 (const char *utf8,
|
||||
/* check that len == -1 yields identical results */
|
||||
error2 = NULL;
|
||||
result2 = g_utf8_to_ucs4 (utf8, -1, &items_read2, &items_written2, &error2);
|
||||
g_assert (items_read2 == items_read);
|
||||
g_assert (items_written2 == items_written2);
|
||||
g_assert (error || items_read2 == items_read);
|
||||
g_assert (error || items_written2 == items_written2);
|
||||
g_assert (!!result == !!result2);
|
||||
g_assert (!!error == !!error2);
|
||||
if (result)
|
||||
@ -240,8 +240,8 @@ check_ucs4_to_utf8 (const gunichar *ucs4,
|
||||
error2 = NULL;
|
||||
result2 = g_ucs4_to_utf8 (ucs4, -1, &items_read2, &items_written2, &error2);
|
||||
|
||||
g_assert (items_read2 == items_read);
|
||||
g_assert (items_written2 == items_written);
|
||||
g_assert (error || items_read2 == items_read);
|
||||
g_assert (error || items_written2 == items_written);
|
||||
g_assert (!!result == !!result2);
|
||||
g_assert (!!error == !!error2);
|
||||
if (result)
|
||||
@ -304,8 +304,8 @@ check_utf8_to_utf16 (const char *utf8,
|
||||
/* check that len == -1 yields identical results */
|
||||
error2 = NULL;
|
||||
result2 = g_utf8_to_utf16 (utf8, -1, &items_read2, &items_written2, &error2);
|
||||
g_assert (items_read2 == items_read);
|
||||
g_assert (items_written2 == items_written2);
|
||||
g_assert (error || items_read2 == items_read);
|
||||
g_assert (error || items_written2 == items_written2);
|
||||
g_assert (!!result == !!result2);
|
||||
g_assert (!!error == !!error2);
|
||||
if (result)
|
||||
@ -379,8 +379,8 @@ check_utf16_to_utf8 (const gunichar2 *utf16,
|
||||
error2 = NULL;
|
||||
result2 = g_utf16_to_utf8 (utf16, -1, &items_read2, &items_written2, &error2);
|
||||
|
||||
g_assert (items_read2 == items_read);
|
||||
g_assert (items_written2 == items_written);
|
||||
g_assert (error || items_read2 == items_read);
|
||||
g_assert (error || items_written2 == items_written);
|
||||
g_assert (!!result == !!result2);
|
||||
g_assert (!!error == !!error2);
|
||||
if (result)
|
||||
@ -453,8 +453,8 @@ check_ucs4_to_utf16 (const gunichar *ucs4,
|
||||
error2 = NULL;
|
||||
result2 = g_ucs4_to_utf16 (ucs4, -1, &items_read2, &items_written2, &error2);
|
||||
|
||||
g_assert (items_read2 == items_read);
|
||||
g_assert (items_written2 == items_written);
|
||||
g_assert (error || items_read2 == items_read);
|
||||
g_assert (error || items_written2 == items_written);
|
||||
g_assert (!!result == !!result2);
|
||||
g_assert (!!error == !!error2);
|
||||
if (result)
|
||||
@ -519,8 +519,8 @@ check_utf16_to_ucs4 (const gunichar2 *utf16,
|
||||
/* check that len == -1 yields identical results */
|
||||
error2 = NULL;
|
||||
result2 = g_utf16_to_ucs4 (utf16, -1, &items_read2, &items_written2, &error2);
|
||||
g_assert (items_read2 == items_read);
|
||||
g_assert (items_written2 == items_written2);
|
||||
g_assert (error || items_read2 == items_read);
|
||||
g_assert (error || items_written2 == items_written2);
|
||||
g_assert (!!result == !!result2);
|
||||
g_assert (!!error == !!error2);
|
||||
if (result)
|
||||
|
Loading…
Reference in New Issue
Block a user