[gdk-pixbuf] tests: Don't use g_assert_nonnull yet
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] tests: Don't use g_assert_nonnull yet
- Date: Fri, 24 Oct 2014 13:42:27 +0000 (UTC)
commit 3b98556b5d602ead6366edb8b8d0053ad0cd4def
Author: Bastien Nocera <hadess hadess net>
Date: Fri Oct 24 15:41:03 2014 +0200
tests: Don't use g_assert_nonnull yet
So that we don't require glib 2.40.
tests/pixbuf-short-gif-write.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/pixbuf-short-gif-write.c b/tests/pixbuf-short-gif-write.c
index 592ef6b..6c188f4 100644
--- a/tests/pixbuf-short-gif-write.c
+++ b/tests/pixbuf-short-gif-write.c
@@ -36,11 +36,11 @@ static void
test_short_gif_write (void)
{
GIOChannel* channel = g_io_channel_new_file (g_test_get_filename (G_TEST_DIST, "test-animation.gif",
NULL), "r", NULL);
- g_assert_nonnull (channel);
+ g_assert (channel != NULL);
g_io_channel_set_encoding (channel, NULL, NULL);
GdkPixbufLoader *loader = gdk_pixbuf_loader_new_with_type ("gif", NULL);
- g_assert_nonnull (loader);
+ g_assert (loader != NULL);
loader_write_from_channel (loader, channel, 10);
loader_write_from_channel (loader, channel, G_MAXSIZE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]