GMemoryInputStream: fix skip_async()
authorDan Winship <danw@gnome.org>
Sat, 5 Jan 2013 18:26:23 +0000 (13:26 -0500)
committerDan Winship <danw@gnome.org>
Sat, 5 Jan 2013 18:29:01 +0000 (13:29 -0500)
commitf42347d82e3724958d36922a6171c2eb262336cb
tree980cb7e3fc491ef355443a3c891fca8765a8bb8f
parent330c6c116e31628fcd46ee95e7bff51c60be5bab
GMemoryInputStream: fix skip_async()

a5876e5f made GMemoryInputStream subclassable, but accidentally broke
read_async() and skip_async() in the process. The immediately
following e7983495 fixed read_async() (and added a test for it), but
skip_async() accidentally got... skipped.

Fix it now and add a test for it.

Also, GMemoryInputStream's skip_async() was assuming that skip() could
never fail, which is true of its own implementation, but might not be
true of a subclass's, so do proper GError handling too.
gio/gmemoryinputstream.c
gio/tests/memory-input-stream.c