Fix /contenttype/guess test
authorMartin Pitt <martinpitt@gnome.org>
Wed, 27 Jun 2012 14:30:38 +0000 (16:30 +0200)
committerMartin Pitt <martinpitt@gnome.org>
Thu, 28 Jun 2012 13:57:22 +0000 (15:57 +0200)
commitd023b81a7a261782f2c88df7751f3476bd802b99
tree5236e874cdb9e648a196d01098e67441a2535769
parentc35106fcc4a736a2cdd3566042da15216dea415b
Fix /contenttype/guess test

After fixing bug 674452 this test case now reliably fails, as "ABC abc" is text
and definitively not PowerPoint. It previously worked as g_content_type_guess()
was reading beyond the boundary of the data due to specifying -1 as data
length.

Update that test case to expect a PO template instead, and add two more with a
definitive PO template syntax and some binary data. We do not currently have a
MIME magic for PowerPoint, so we cannot actually detect it with certainty, but
at least make sure that the returned MIME type is correct.

https://bugzilla.gnome.org/show_bug.cgi?id=678941
gio/tests/contenttype.c