sleepy-stream test: use a real GError domain

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Matthias Clasen <mclasen@redhat.com>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=660371
This commit is contained in:
Simon McVittie 2011-09-29 15:42:33 +01:00
parent e60e4999b9
commit 7aad93c5b4

View File

@ -100,7 +100,7 @@ sleepy_stream_read (GInputStream *stream,
{
if (sleepy->built_to_fail)
{
g_set_error (error, 0, 0, "fail");
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, "fail");
return -1;
}
else