[glib] sleepy-stream test: use a real GError domain
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] sleepy-stream test: use a real GError domain
- Date: Fri, 30 Sep 2011 13:03:16 +0000 (UTC)
commit 7aad93c5b43faa383ccb609852209d480548dd64
Author: Simon McVittie <simon mcvittie collabora co uk>
Date: Thu Sep 29 15:42:33 2011 +0100
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
gio/tests/sleepy-stream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/sleepy-stream.c b/gio/tests/sleepy-stream.c
index fc235e1..6d9da7b 100644
--- a/gio/tests/sleepy-stream.c
+++ b/gio/tests/sleepy-stream.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]