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:
Dan Winship
2008-09-27 01:43:43 +00:00
parent 5c53925ed0
commit 29ddd48ff2
6 changed files with 61 additions and 57 deletions

View File

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