[glib] tests: Fix g_content_type_is_mime_type() test on OSX
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] tests: Fix g_content_type_is_mime_type() test on OSX
- Date: Sat, 29 Apr 2017 07:48:29 +0000 (UTC)
commit cbcf10411c367c873dbeb4ea029c080099322596
Author: Patrick Griffis <tingping tingping se>
Date: Sat Apr 29 03:44:42 2017 -0400
tests: Fix g_content_type_is_mime_type() test on OSX
It should be passed a mime type not a content type.
https://bugzilla.gnome.org/show_bug.cgi?id=734946
gio/tests/contenttype.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/contenttype.c b/gio/tests/contenttype.c
index 4b4be46..7930002 100644
--- a/gio/tests/contenttype.c
+++ b/gio/tests/contenttype.c
@@ -144,7 +144,7 @@ test_subtype (void)
xml = g_content_type_from_mime_type ("application/xml");
g_assert (g_content_type_is_a (xml, plain));
- g_assert (g_content_type_is_mime_type (xml, plain));
+ g_assert (g_content_type_is_mime_type (xml, "text/plain"));
g_free (plain);
g_free (xml);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]