mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 10:27:51 +02:00
Use g_assert_error() and g_assert_no_error()
* tests/data-input-stream.c: * tests/data-output-stream.c: * tests/live-g-file.c: * tests/memory-input-stream.c: * tests/memory-output-stream.c: Use g_assert_error() and g_assert_no_error() svn path=/trunk/; revision=7556
This commit is contained in:
@@ -39,14 +39,14 @@ test_truncate (void)
|
||||
for (i = 0; i < 1000; i++)
|
||||
{
|
||||
g_data_output_stream_put_byte (o, 1, NULL, &error);
|
||||
g_assert (error == NULL);
|
||||
g_assert_no_error (error);
|
||||
}
|
||||
g_seekable_truncate (G_SEEKABLE (mo), 0, NULL, &error);
|
||||
g_assert (error == NULL);
|
||||
g_assert_no_error (error);
|
||||
for (i = 0; i < 2000; i++)
|
||||
{
|
||||
g_data_output_stream_put_byte (o, 1, NULL, &error);
|
||||
g_assert (error == NULL);
|
||||
g_assert_no_error (error);
|
||||
}
|
||||
|
||||
g_object_unref (o);
|
||||
|
Reference in New Issue
Block a user