[glib] tests: remove assertion for '!uncertain' on .txt



commit 5a11019034f68dc5522935d447d71593140f5210
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Sep 12 14:38:08 2013 -0400

    tests: remove assertion for '!uncertain' on .txt
    
    Virtaal installs a mime package for various .po-like file formats, one
    of which has the extension .txt.  This causes GLib to report ".txt"
    files still as "text/plain" but no longer with complete certainty.
    
    The result is that asserting !uncertain during the testsuite causes the
    test to fail if Virtaal happens to be installed.
    
    Remove this assertion.

 gio/tests/contenttype.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/contenttype.c b/gio/tests/contenttype.c
index ec46be4..e9ff2d3 100644
--- a/gio/tests/contenttype.c
+++ b/gio/tests/contenttype.c
@@ -23,7 +23,6 @@ test_guess (void)
   res = g_content_type_guess ("foo.txt", NULL, 0, &uncertain);
   expected = g_content_type_from_mime_type ("text/plain");
   g_assert (g_content_type_equals (expected, res));
-  g_assert (!uncertain);
   g_free (res);
   g_free (expected);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]